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/MultiObjectiveScriptableProblem.cs

    r11753 r11767  
    2020#endregion
    2121
    22 using System.Collections.Generic;
     22using System;
    2323using HeuristicLab.Common;
    2424using HeuristicLab.Core;
     
    4848      : base(original, cloner) {
    4949      RegisterEvents();
    50       ProblemScript.Compile();
     50      try {
     51        ProblemScript.Compile();
     52      }
     53      catch (InvalidOperationException) {
     54        //Compilation error
     55      }
    5156    }
    5257    public override IDeepCloneable Clone(Cloner cloner) { return new MultiObjectiveScriptableProblem(this, cloner); }
     
    6570    private void AfterDeserialization() {
    6671      RegisterEvents();
    67       ProblemScript.Compile();
     72      try {
     73        ProblemScript.Compile();
     74      }
     75      catch (InvalidOperationException) {
     76        //Compilation error
     77      }
    6878    }
    6979
Note: See TracChangeset for help on using the changeset viewer.