Changeset 1731
- Timestamp:
- 05/04/09 16:28:35 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.FixedOperators/3.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.FixedOperators/3.2/FixedBase.cs
r1693 r1731 46 46 } 47 47 catch (Exception) { 48 // push operation on stack again49 executionStack.Push(atomicOperation);50 48 //Abort(); 51 49 //ThreadPool.QueueUserWorkItem(delegate(object state) { OnExceptionOccurred(ex); }); … … 54 52 if (next != null) 55 53 executionStack.Push(next); 56 //OnOperationExecuted(atomicOperation);57 //if (atomicOperation.Operator.Breakpoint) Abort();58 54 } else if (operation is CompositeOperation) { 59 55 CompositeOperation compositeOperation = (CompositeOperation)operation; -
trunk/sources/HeuristicLab.FixedOperators/3.2/FixedSGAMain.cs
r1693 r1731 113 113 Stopwatch swApply = new Stopwatch(); 114 114 swApply.Start(); 115 //base.Apply(scope); // noch nachfragen ob das auch in ordnung wäre116 115 for (int i = 0; i < SubOperators.Count; i++) { 117 116 if (scope.GetVariable(SubOperators[i].Name) != null) … … 145 144 // executionpointer saves the reentry point after engine abort occurs. 146 145 IntData executionPointer; 147 try 148 { 149 executionPointer = GetVariableValue<IntData>("ExecutionPointer", scope, true); 150 } 151 catch (Exception) 152 { 146 try { 147 executionPointer = GetVariableValue<IntData>("ExecutionPointer", scope, true); 148 } 149 catch (Exception) { 153 150 scope.AddVariable(new Variable("ExecutionPointer", new IntData(-1))); 154 151 executionPointer = GetVariableValue<IntData>("ExecutionPointer", scope, true); 155 152 } 156 153 157 154 // fetch variables from scope for create children 158 155 InitializeExecuteCreateChildren(scope); … … 245 242 } // Apply 246 243 247 244 248 245 249 246 /// <summary> … … 262 259 } 263 260 261 /// <summary> 262 /// 263 /// </summary> 264 /// <param name="scope"></param> 264 265 protected void ExecuteCreateChildrenWithFixedControlStructures(IScope scope) { 265 266 // ChildrenInitializer
Note: See TracChangeset
for help on using the changeset viewer.