Changeset 1740


Ignore:
Timestamp:
2/3/2010 1:14:37 AM (4 years ago)
Author:
lowjoel
Message:

Supplants r1659: When we ware waiting for event triggers we also need to ensure that the form has not yet been disposed.

Location:
branches/eraser6/6.0/Eraser
Files:
2 edited

Legend:

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

    r1677 r1740  
    7777        private void task_NewSession(object sender, EventArgs e) 
    7878        { 
    79             if (!IsHandleCreated) 
     79            if (IsDisposed || !IsHandleCreated) 
    8080                return; 
    8181            if (InvokeRequired) 
     
    9090        private void task_Logged(object sender, LogEventArgs e) 
    9191        { 
    92             if (!IsHandleCreated) 
     92            if (IsDisposed || !IsHandleCreated) 
    9393                return; 
    9494            if (InvokeRequired) 
  • branches/eraser6/6.0/Eraser/ProgressForm.cs

    r1677 r1740  
    6161        private void task_ProgressChanged(object sender, TaskProgressEventArgs e) 
    6262        { 
    63             if (!IsHandleCreated) 
     63            if (IsDisposed || !IsHandleCreated) 
    6464                return; 
    6565            if (InvokeRequired) 
     
    104104        private void task_TaskFinished(object sender, TaskEventArgs e) 
    105105        { 
    106             if (!IsHandleCreated) 
     106            if (IsDisposed || !IsHandleCreated) 
    107107                return; 
    108108            if (InvokeRequired) 
Note: See TracChangeset for help on using the changeset viewer.