Changeset 11767 for branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/New/MultiObjectiveScriptableProblem.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/MultiObjectiveScriptableProblem.cs
r11753 r11767 20 20 #endregion 21 21 22 using System .Collections.Generic;22 using System; 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; … … 48 48 : base(original, cloner) { 49 49 RegisterEvents(); 50 ProblemScript.Compile(); 50 try { 51 ProblemScript.Compile(); 52 } 53 catch (InvalidOperationException) { 54 //Compilation error 55 } 51 56 } 52 57 public override IDeepCloneable Clone(Cloner cloner) { return new MultiObjectiveScriptableProblem(this, cloner); } … … 65 70 private void AfterDeserialization() { 66 71 RegisterEvents(); 67 ProblemScript.Compile(); 72 try { 73 ProblemScript.Compile(); 74 } 75 catch (InvalidOperationException) { 76 //Compilation error 77 } 68 78 } 69 79
Note: See TracChangeset
for help on using the changeset viewer.