- Timestamp:
- 11/03/17 11:14:27 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/EnhancedProgress/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ProgressView.cs
r15445 r15446 158 158 159 159 private void UpdateProgressValue() { 160 // prevent problems with object disposal and invoke as suggested by http://stackoverflow.com/a/18647091161 if (!IsHandleCreated) return;162 160 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); 169 162 return; 170 163 }
Note: See TracChangeset
for help on using the changeset viewer.