Changeset 2818 for trunk/sources/HeuristicLab.SequentialEngine
- Timestamp:
- 02/17/10 05:24:03 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SequentialEngine/3.3/SequentialEngine.cs
r2790 r2818 62 62 for (int i = coll.Count - 1; i >= 0; i--) 63 63 ExecutionStack.Push(coll[i]); 64 next = ExecutionStack. Pop();64 next = ExecutionStack.Count > 0 ? ExecutionStack.Pop() : null; 65 65 coll = next as ExecutionContextCollection; 66 66 } 67 67 ExecutionContext context = next as ExecutionContext; 68 try { 69 currentOperator = context.Operator; 70 ExecutionStack.Push(context.Operator.Execute(context)); 71 currentOperator = null; 68 if (context != null) { 69 try { 70 currentOperator = context.Operator; 71 ExecutionStack.Push(context.Operator.Execute(context)); 72 currentOperator = null; 73 } 74 catch (Exception ex) { 75 ExecutionStack.Push(context); 76 Stop(); 77 OnExceptionOccurred(ex); 78 } 79 if (context.Operator.Breakpoint) 80 Stop(); 72 81 } 73 catch (Exception ex) {74 ExecutionStack.Push(context);75 Stop();76 OnExceptionOccurred(ex);77 }78 if (context.Operator.Breakpoint)79 Stop();80 82 } 81 83 }
Note: See TracChangeset
for help on using the changeset viewer.