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

Forward Port from Eraser 6.0: 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.

Location:
trunk/eraser6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6

  • trunk/eraser6/Eraser/LogForm.cs

    r1450 r1660  
    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.