Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/03/17 11:14:27 (7 years ago)
Author:
pfleck
Message:

#2845:

  • Start progres with initial progress value in several cases to use the progress value update.
  • Removed object disposal guard in ProgressView because it can block part of the initialization.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/EnhancedProgress/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ProgressView.cs

    r15445 r15446  
    158158
    159159    private void UpdateProgressValue() {
    160       // prevent problems with object disposal and invoke as suggested by http://stackoverflow.com/a/18647091
    161       if (!IsHandleCreated) return;
    162160      if (InvokeRequired) {
    163         try {
    164           Invoke((Action)UpdateProgressValue);
    165         } catch (InvalidOperationException) {
    166           // swallow ObjectDisposedException
    167           // which might occur if the invoke call is executed after or while the control is disposing
    168         }
     161        Invoke((Action)UpdateProgressValue);
    169162        return;
    170163      }
Note: See TracChangeset for help on using the changeset viewer.