Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/15/15 14:30:14 (9 years ago)
Author:
mkommend
Message:

#2174: Several bug fixes in programmable problem that were discovered during testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/New/SingleObjectiveScriptableProblem.cs

    r11753 r11767  
    2020#endregion
    2121
     22using System;
    2223using System.Collections.Generic;
    23 using System.Linq;
    2424using HeuristicLab.Common;
    2525using HeuristicLab.Core;
     
    4949      : base(original, cloner) {
    5050      RegisterEvents();
    51       ProblemScript.Compile();
     51      try {
     52        ProblemScript.Compile();
     53      }
     54      catch (InvalidOperationException) {
     55        //Compilation error
     56      }
    5257    }
    5358    public override IDeepCloneable Clone(Cloner cloner) { return new SingleObjectiveScriptableProblem(this, cloner); }
     
    6873    private void AfterDeserialization() {
    6974      RegisterEvents();
    70       ProblemScript.Compile();
     75      try {
     76        ProblemScript.Compile();
     77      }
     78      catch (InvalidOperationException) {
     79        //Compilation error
     80      }
    7181    }
    7282
Note: See TracChangeset for help on using the changeset viewer.