Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/25/12 13:20:28 (13 years ago)
Author:
ascheibe
Message:

#1766 fixed crash when the hive job manager can't deserialize a task

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs

    r7259 r7409  
    114114        logView.Content = null;
    115115        refreshAutomaticallyCheckBox.Checked = false;
    116         logView.Content = null;
    117116        runCollectionViewHost.Content = null;
    118117      } else {
     
    302301    }
    303302    private void Content_ExceptionOccured(object sender, EventArgs<Exception> e) {
    304       throw e.Value;
     303      if (InvokeRequired)
     304        Invoke(new EventHandler<EventArgs<Exception>>(Content_ExceptionOccured), sender, e);
     305      else {
     306        //don't show the error dialog when downloading tasks, the HiveClient will throw an exception and the dialog will be shown then
     307        if (sender.GetType() != typeof(ConcurrentTaskDownloader<ItemTask>) && sender.GetType() != typeof(TaskDownloader)) {
     308          ErrorHandling.ShowErrorDialog(this, e.Value);
     309        }
     310      }
    305311    }
    306312    private void Content_StateLogListChanged(object sender, EventArgs e) {
Note: See TracChangeset for help on using the changeset viewer.