Changeset 8994
- Timestamp:
- 12/04/12 14:30:58 (12 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r8962 r8994 46 46 private HiveResourceSelectorDialog hiveResourceSelectorDialog; 47 47 private bool SuppressEvents { get; set; } 48 private object runCollectionViewLocker = new object(); 48 49 49 50 public new RefreshableJob Content { … … 132 133 logView.Content = null; 133 134 refreshAutomaticallyCheckBox.Checked = false; 134 runCollectionViewHost.Content = null; 135 lock (runCollectionViewLocker) { 136 runCollectionViewHost.Content = null; 137 } 135 138 } else { 136 139 nameTextBox.Text = Content.Job.Name; … … 140 143 refreshAutomaticallyCheckBox.Checked = Content.RefreshAutomatically; 141 144 logView.Content = Content.Log; 142 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 145 lock (runCollectionViewLocker) { 146 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 147 } 143 148 } 144 149 } … … 192 197 #region Content Events 193 198 void Content_TaskReceived(object sender, EventArgs e) { 194 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 199 lock (runCollectionViewLocker) { 200 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 201 } 195 202 } 196 203 … … 288 295 289 296 void Content_Loaded(object sender, EventArgs e) { 290 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 297 lock (runCollectionViewLocker) { 298 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 299 } 291 300 } 292 301 -
trunk/sources/HeuristicLab.Clients.Hive/3.3/RefreshableJob.cs
r8993 r8994 302 302 }); 303 303 } 304 } else 305 throw new Exception("This should not happen"); 304 } 306 305 } 307 306 GC.Collect(); // force GC, because .NET is too lazy here (deserialization takes a lot of memory)
Note: See TracChangeset
for help on using the changeset viewer.