T
t_pet422
Hi,
I wrote a form that and behaves a lot like the desktop alerts in
Outlook 2003 (fades in and out unobtrusively), then filled it with
current condition weather data (www.weathercorneralert.com). I'm
having the oddest exception that I can't track down. The app refreshes
current conditions hourly (with a System.Windows.Forms.Timer). If I
put my computer in stand by or hibernate, then bring it back up, I
often get the following exception (type, message and stack trace):
System.ComponentModel.Win32Exception
The operation completed successfully
at System.Windows.Forms.Form.UpdateLayered()
at System.Windows.Forms.Form.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmCreate(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)
This is the _entire_ stack trace. Note the lack of any user code in
the stack trace. Also note that this build is built in debug mode; I
was hoping to get some line numbers. I get the same thing when I build
in release mode.
I'm clueless as to how to prevent this exception from being thrown.
I'm almost at the point where I'll just catch a Win32Exception in my
Application.ThreadException handler and swallow it.
Can anyone offer any suggestions? Thanks a lot in advance,
Travis
I wrote a form that and behaves a lot like the desktop alerts in
Outlook 2003 (fades in and out unobtrusively), then filled it with
current condition weather data (www.weathercorneralert.com). I'm
having the oddest exception that I can't track down. The app refreshes
current conditions hourly (with a System.Windows.Forms.Timer). If I
put my computer in stand by or hibernate, then bring it back up, I
often get the following exception (type, message and stack trace):
System.ComponentModel.Win32Exception
The operation completed successfully
at System.Windows.Forms.Form.UpdateLayered()
at System.Windows.Forms.Form.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmCreate(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)
This is the _entire_ stack trace. Note the lack of any user code in
the stack trace. Also note that this build is built in debug mode; I
was hoping to get some line numbers. I get the same thing when I build
in release mode.
I'm clueless as to how to prevent this exception from being thrown.
I'm almost at the point where I'll just catch a Win32Exception in my
Application.ThreadException handler and swallow it.
Can anyone offer any suggestions? Thanks a lot in advance,
Travis