Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/15/08 22:08:33 (15 years ago)
Author:
gkronber
Message:

fixed #362 (GridClient doesn't work since the change to use major.minor version-numbers for plugins)

Location:
trunk/sources/HeuristicLab.Grid
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Grid/EngineRunner.cs

    r440 r766  
    2525using HeuristicLab.Core;
    2626using System.Threading;
     27using HeuristicLab.PluginInfrastructure;
     28using System.Reflection;
    2729
    2830namespace HeuristicLab.Grid {
  • trunk/sources/HeuristicLab.Grid/GridClient.cs

    r440 r766  
    2626using System.Diagnostics;
    2727using System.Threading;
     28using HeuristicLab.PluginInfrastructure;
    2829
    2930namespace HeuristicLab.Grid {
     
    134135        if(gotEngine && !stopped) {
    135136          executing = true;
    136           AppDomain engineDomain = AppDomain.CreateDomain("Engine domain", null, AppDomain.CurrentDomain.SetupInformation);
    137           EngineRunner runner = (EngineRunner)engineDomain.CreateInstanceAndUnwrap("HeuristicLab.Grid", typeof(EngineRunner).FullName);
     137          AppDomain engineDomain = PluginManager.Manager.CreateAndInitAppDomain("Engine domain");
     138          Type engineRunnerType = typeof(EngineRunner);
     139         
     140          EngineRunner runner = (EngineRunner)engineDomain.CreateInstanceAndUnwrap(engineRunnerType.Assembly.GetName().Name, engineRunnerType.FullName);
    138141          byte[] resultXml = runner.Execute(engineXml);
    139142          bool success = false;
Note: See TracChangeset for help on using the changeset viewer.