Opened 6 months ago

#2716 new defect

Exception in RemoveOperationProgressFromContent

Reported by: gkronber Owned by:
Priority: medium Milestone: HeuristicLab 3.3.15
Component: MainForm.WindowsForms Version: 3.3.14
Keywords: Cc:


I got an exception in RemoveOperationProgressFromContent:

"No progress is registered for the specified content."

This happened when I was uploading jobs to Hive (in multiple tabs concurrently).

Relevant section of code:

    /// <summary>
    /// Removes an existing <see cref="ProgressView"/> from the <see cref="ContentView"/>s showing the specified content.
    /// </summary>
    public void RemoveOperationProgressFromContent(IContent content, bool finishProgress = true) {
      if (InvokeRequired) {
        Invoke((Action<IContent, bool>)RemoveOperationProgressFromContent, content, finishProgress);

      IProgress progress;
      if (!contentProgressLookup.TryGetValue(content, out progress))
        throw new ArgumentException("No progress is registered for the specified content.", "content");

      if (finishProgress) progress.Finish();
      foreach (var progressView in progressViews.Where(v => v.Content == progress).ToList()) {


Change History (0)

Note: See TracTickets for help on using tickets.