UnsafeNativeMethods.CallWindowProc Exception and 'Failed to load resources from resource file'

  • Thread starter Thread starter Wal Turner
  • Start date Start date
W

Wal Turner

Hi. The following error I seemingly get at random times when my application
is loading.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an
object.
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr
wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
at System.Windows.Forms.Control.DefWndProc(Message& m)
at System.Windows.Forms.Control.WmUpdateUIState(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.ParkingWindow.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)



Shortly after this exception I get a popup saying 'Failed to load resources
from resource file Please check your Setup' which has not come from within
my code. I have been looking on other forums and havent had much luck
finding the answer. (see
http://www.experts-exchange.com/Programming/Q_21003949.html)

I have tried many things, including re-installing .NET framework, the SP1
(recommended above) but the problem still occurs randomly.
I guess the most severe thing about this is that it cannot be caught and
handled and ignored, and the user has no choice but to exit the application
and start again. If the error cannot be fixed, is there any way to work
around errors of this kind? (ie thrown outside user-code)

Regards

Wal
 
Back
Top