Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/23/09 11:35:41 (15 years ago)
Author:
svonolfe
Message:

Avoid out of memory exceptions related to job objects (#372)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Engine/3.2/HiveEngine.cs

    r2032 r2082  
    193193    }
    194194
    195     private HeuristicLab.Hive.Contracts.BusinessObjects.Job CreateJobObj() {
    196       HeuristicLab.Hive.Contracts.BusinessObjects.Job jobObj = new HeuristicLab.Hive.Contracts.BusinessObjects.Job();
     195    private HeuristicLab.Hive.Contracts.BusinessObjects.ComputableJob CreateJobObj() {
     196      HeuristicLab.Hive.Contracts.BusinessObjects.Job jobObj =
     197        new HeuristicLab.Hive.Contracts.BusinessObjects.Job();
    197198
    198199      MemoryStream memStream = new MemoryStream();
     
    205206      document.Save(stream);
    206207      stream.Close();
    207       jobObj.SerializedJob = memStream.ToArray();
     208
     209      HeuristicLab.Hive.Contracts.BusinessObjects.ComputableJob executableJobObj =
     210        new HeuristicLab.Hive.Contracts.BusinessObjects.ComputableJob();
     211      executableJobObj.JobInfo = jobObj;
     212      executableJobObj.SerializedJob = memStream.ToArray();
    208213
    209214      DiscoveryService service = new DiscoveryService();
     
    234239      jobObj.PluginsNeeded = pluginsNeeded;
    235240      jobObj.State = HeuristicLab.Hive.Contracts.BusinessObjects.State.offline;
    236       return jobObj;
     241      return executableJobObj;
    237242    }
    238243
Note: See TracChangeset for help on using the changeset viewer.