Changeset 3262 for trunk/sources/HeuristicLab.SequentialEngine
- Timestamp:
- 04/04/10 05:22:47 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SequentialEngine/3.3/SequentialEngine.cs
r3226 r3262 56 56 currentOperator = operation.Operator; 57 57 ExecutionStack.Push(operation.Operator.Execute((IExecutionContext)operation)); 58 currentOperator = null;59 58 } 60 59 catch (Exception ex) { 61 60 ExecutionStack.Push(operation); 62 61 OnExceptionOccurred(ex); 63 Stop();62 Pause(); 64 63 } 65 64 if (operation.Operator.Breakpoint) 66 Stop();65 Pause(); 67 66 } 68 67 } 69 68 70 protected override void OnCanceledChanged() { 71 if (Canceled && (currentOperator != null)) 72 currentOperator.Abort(); 69 public override void Pause() { 70 base.Pause(); 71 if (currentOperator != null) currentOperator.Abort(); 72 } 73 public override void Stop() { 74 base.Stop(); 75 if (currentOperator != null) currentOperator.Abort(); 73 76 } 74 77 }
Note: See TracChangeset
for help on using the changeset viewer.