Changeset 11767 for branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/New/SingleObjectiveScriptableProblem.cs
- Timestamp:
- 01/15/15 14:30:14 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/New/SingleObjectiveScriptableProblem.cs
r11753 r11767 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; 23 using System.Linq;24 24 using HeuristicLab.Common; 25 25 using HeuristicLab.Core; … … 49 49 : base(original, cloner) { 50 50 RegisterEvents(); 51 ProblemScript.Compile(); 51 try { 52 ProblemScript.Compile(); 53 } 54 catch (InvalidOperationException) { 55 //Compilation error 56 } 52 57 } 53 58 public override IDeepCloneable Clone(Cloner cloner) { return new SingleObjectiveScriptableProblem(this, cloner); } … … 68 73 private void AfterDeserialization() { 69 74 RegisterEvents(); 70 ProblemScript.Compile(); 75 try { 76 ProblemScript.Compile(); 77 } 78 catch (InvalidOperationException) { 79 //Compilation error 80 } 71 81 } 72 82
Note: See TracChangeset
for help on using the changeset viewer.