Changeset 1734


Ignore:
Timestamp:
2/3/2010 12:13:11 AM (5 years ago)
Author:
lowjoel
Message:

Fixed potential regression in r1721 and r1633 where we added in calls to CreateHandle? so that window handles are created immediately for calls to InvokeRequired?. Move those calls to the start of the constructor so that the handle will not be already created and throw an InvalidOperationException?

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

Legend:

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

    r1721 r1734  
    4545        public MainForm() 
    4646        { 
     47            CreateHandle(); 
    4748            InitializeComponent(); 
    4849            contentPanel.Controls.Add(SchedulerPage); 
    4950            contentPanel.Controls.Add(SettingsPage); 
    50             CreateHandle(); 
    5151 
    5252            UXThemeApi.UpdateControlTheme(this); 
  • branches/eraser6/6.0/Eraser/SchedulerPanel.cs

    r1719 r1734  
    4242        public SchedulerPanel() 
    4343        { 
     44            CreateHandle(); 
    4445            InitializeComponent(); 
    4546            UXThemeApi.UpdateControlTheme(schedulerDefaultMenu); 
    46             CreateHandle(); 
    4747 
    4848            //Populate the scheduler list-view with the current task list 
Note: See TracChangeset for help on using the changeset viewer.