Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3282


Ignore:
Timestamp:
04/07/10 17:24:30 (15 years ago)
Author:
abeham
Message:

fixed cross thread exception in SA HL3.2 #577

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.SA/3.2/SAEditor.cs

    r2591 r3282  
    201201    }
    202202    private void Engine_Finished(object sender, EventArgs e) {
    203       scopeView.Refresh();
    204       executeButton.Enabled = true;
    205       abortButton.Enabled = false;
     203      if (InvokeRequired) Invoke(new Action<object, EventArgs>(Engine_Finished), this, EventArgs.Empty);
     204      else {
     205        scopeView.Refresh();
     206        executeButton.Enabled = true;
     207        abortButton.Enabled = false;
     208      }
    206209    }
    207210    #endregion
Note: See TracChangeset for help on using the changeset viewer.