Ignore:
Timestamp:
1/25/2010 2:35:37 AM (2 years ago)
Author:
lowjoel
Message:

When dealing with the LogForm? and the ProgressForm? classes, for events in which we wait for triggering by the task object, we should check that the form we belong to exists (i.e. not disposed) before we do anything on the form since forms which have Disposed() called will still receive events. There is a fix removed in this revision (in ProgressForm?.cs/WrapItemName) which may introduce new bugs but since this is really hard to reproduce I'll commit a blind fix and wait for more reports to come in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/6.0/Eraser/LogForm.cs

    r1360 r1659  
    7777        private void task_NewSession(object sender, EventArgs e) 
    7878        { 
     79            if (!IsHandleCreated) 
     80                return; 
    7981            if (InvokeRequired) 
    8082            { 
     
    8890        private void task_Logged(object sender, LogEventArgs e) 
    8991        { 
     92            if (!IsHandleCreated) 
     93                return; 
    9094            if (InvokeRequired) 
    9195            { 
Note: See TracChangeset for help on using the changeset viewer.