linesh
Freshman
Hi Everyone,
I keep getting this exception for quite sometime and maybe someone could give me some pointers. This occurs sporadically.
My application has a splash screen(form) that loads a main form. This error occurs when the main form is being loaded. The splash has a timer and after 2 seconds the main form is loaded and the splash form is hidden.
The main form has some controls which are custom-drawn (tabs, buttons). It also contains some VB6 activex controls (Interop).
I get the following errors one after another:
An unhandled exception of type 'System.NullReferenceException' occurred in system.drawing.dll
Additional information: Object reference not set to an instance of an object.
An unhandled exception of type 'System.InvalidOperationException' occurred in system.drawing.dll
Additional information: The object is currently in use elsewhere.
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at System.Drawing.SafeNativeMethods.IntGdipDisposeImage(HandleRef image)
at System.Drawing.SafeNativeMethods.GdipDisposeImage(HandleRef image)
at System.Drawing.Image.Dispose(Boolean disposing)
at System.Drawing.Image.Finalize()The program '[2356] ZView.exe' has exited with code 0 (0x0).
Has anyone seen/experienced this before? Any suggestions would be welcome.
Thanks in advance,
Linesh
I keep getting this exception for quite sometime and maybe someone could give me some pointers. This occurs sporadically.
My application has a splash screen(form) that loads a main form. This error occurs when the main form is being loaded. The splash has a timer and after 2 seconds the main form is loaded and the splash form is hidden.
The main form has some controls which are custom-drawn (tabs, buttons). It also contains some VB6 activex controls (Interop).
I get the following errors one after another:
An unhandled exception of type 'System.NullReferenceException' occurred in system.drawing.dll
Additional information: Object reference not set to an instance of an object.
An unhandled exception of type 'System.InvalidOperationException' occurred in system.drawing.dll
Additional information: The object is currently in use elsewhere.
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at System.Drawing.SafeNativeMethods.IntGdipDisposeImage(HandleRef image)
at System.Drawing.SafeNativeMethods.GdipDisposeImage(HandleRef image)
at System.Drawing.Image.Dispose(Boolean disposing)
at System.Drawing.Image.Finalize()The program '[2356] ZView.exe' has exited with code 0 (0x0).
Has anyone seen/experienced this before? Any suggestions would be welcome.
Thanks in advance,
Linesh