Opened 10 months ago

Closed 3 months ago

#2716 closed defect (worksforme)

Exception in RemoveOperationProgressFromContent

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

Description

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);
        return;
      }

      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()) {
        progressView.Dispose();
        progressViews.Remove(progressView);
      }
      contentProgressLookup.Remove(content);

    }

Change History (4)

comment:1 Changed 3 months ago by mkommend

  • Owner set to mkommend
  • Status changed from new to assigned

comment:2 Changed 3 months ago by mkommend

  • Owner changed from mkommend to jkarder

comment:3 Changed 3 months ago by jkarder

  • Owner changed from jkarder to gkronber

Can you reproduce this?

comment:4 Changed 3 months ago by gkronber

  • Resolution set to worksforme
  • Status changed from assigned to closed

No.

Note: See TracTickets for help on using tickets.