System.ComponentModel.Win32Exception: The operation completed successfully

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
 
Joined
Jan 9, 2006
Messages
2
Reaction score
0
Win32Exeption - Operation completed successfully

Hi,
I am getting similar error. Did you have a chance to resolve this issue? If so, can you share what you did to resolve this? That will be greatly appreciated.

thanks in advance
Ramesh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top