Changeset 497


Ignore:
Timestamp:
11/10/2008 12:57:55 PM (6 years ago)
Author:
lowjoel
Message:

Fixed access violations when exiting the program without terminating running erasures.

Location:
branches/eraser6/Eraser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Eraser/MainForm.cs

    r481 r497  
    264264            //Reset the notification area icon. 
    265265            notificationIconTimer.Enabled = false; 
    266             ComponentResourceManager resources = new ComponentResourceManager(typeof(MainForm)); 
    267             resources.ApplyResources(notificationIcon, "notificationIcon"); 
     266            if (notificationIcon.Icon != null) 
     267            { 
     268                ComponentResourceManager resources = new ComponentResourceManager(typeof(MainForm)); 
     269                resources.ApplyResources(notificationIcon, "notificationIcon"); 
     270            } 
    268271        } 
    269272 
  • branches/eraser6/Eraser/SchedulerPanel.cs

    r495 r497  
    176176        void task_TaskFinished(TaskEventArgs e) 
    177177        { 
    178             if (scheduler.InvokeRequired) 
     178            if (InvokeRequired) 
    179179            { 
    180180                Task.TaskEventFunction func = 
     
    186186            //Get the list view item 
    187187            ListViewItem item = GetTaskItem(e.Task); 
     188            if (item == null) 
     189                return; 
    188190 
    189191            //Update the status. 
Note: See TracChangeset for help on using the changeset viewer.