Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/05/11 10:00:04 (14 years ago)
Author:
abeham
Message:

#1462

  • Fixed wiring code, some intermediate algorithm classes were missing the base call so that several events did not get registered
Location:
trunk/sources/HeuristicLab.Optimization/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization/3.3/HeuristicOptimizationAlgorithm.cs

    r5809 r5951  
    5151      Problem.SolutionCreatorChanged -= new EventHandler(Problem_SolutionCreatorChanged);
    5252      Problem.EvaluatorChanged -= new EventHandler(Problem_EvaluatorChanged);
     53      base.DeregisterProblemEvents();
    5354    }
    5455    protected override void RegisterProblemEvents() {
     56      base.RegisterProblemEvents();
    5557      Problem.SolutionCreatorChanged += new EventHandler(Problem_SolutionCreatorChanged);
    5658      Problem.EvaluatorChanged += new EventHandler(Problem_EvaluatorChanged);
  • trunk/sources/HeuristicLab.Optimization/3.3/HeuristicOptimizationEngineAlgorithm.cs

    r5809 r5951  
    5151      Problem.SolutionCreatorChanged -= new EventHandler(Problem_SolutionCreatorChanged);
    5252      Problem.EvaluatorChanged -= new EventHandler(Problem_EvaluatorChanged);
     53      base.DeregisterProblemEvents();
    5354    }
    5455    protected override void RegisterProblemEvents() {
     56      base.RegisterProblemEvents();
    5557      Problem.SolutionCreatorChanged += new EventHandler(Problem_SolutionCreatorChanged);
    5658      Problem.EvaluatorChanged += new EventHandler(Problem_EvaluatorChanged);
Note: See TracChangeset for help on using the changeset viewer.