Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/03/10 13:42:10 (14 years ago)
Author:
cneumuel
Message:

use no transactions in read-only service calls to avoid dead-locks (#1092)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Tracing/3.3/MethodCallPatternConverter.cs

    r4136 r4137  
    1111      StackTrace callStack = new StackTrace();
    1212      int i = 1;
    13       while (i <= callStack.FrameCount && !callStack.GetFrame(i).GetMethod().DeclaringType.FullName.StartsWith("HeuristicLab.Hive")) {
     13      while (i < callStack.FrameCount && !callStack.GetFrame(i).GetMethod().DeclaringType.FullName.StartsWith("HeuristicLab.Hive")) {
    1414        i++;
    1515      }
    16       StackFrame stack = new StackFrame(i);     
    17       writer.Write(stack.GetMethod().Name);           
     16      StackFrame stack = new StackFrame(i);
     17      var method = stack.GetMethod();
     18      if (method != null) {
     19        writer.Write(stack.GetMethod().Name);
     20      }
    1821    }
    1922  }
Note: See TracChangeset for help on using the changeset viewer.