Changeset 1741


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

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

Location:
trunk/eraser6
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6

  • trunk/eraser6/Eraser/LogForm.cs

    r1675 r1741  
    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) 
  • trunk/eraser6/Eraser/ProgressForm.cs

    r1675 r1741  
    6767        private void task_ProgressChanged(object sender, ProgressChangedEventArgs e) 
    6868        { 
    69             if (!IsHandleCreated) 
     69            if (IsDisposed || !IsHandleCreated) 
    7070                return; 
    7171            if (InvokeRequired) 
     
    9393        private void task_TaskFinished(object sender, TaskEventArgs e) 
    9494        { 
    95             if (!IsHandleCreated) 
     95            if (IsDisposed || !IsHandleCreated) 
    9696                return; 
    9797            if (InvokeRequired) 
Note: See TracChangeset for help on using the changeset viewer.