By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,238 Members | 1,804 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,238 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
at System.Windows.Forms.UnsafeNativeMethods.CallWindo wProc(IntPtr
wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.NativeWindow.DefWndProc(Messa ge& m)
at System.Windows.Forms.Control.DefWndProc(Message& m)
at System.Windows.Forms.Control.WmUpdateUIState(Messa ge& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
at System.Windows.Forms.ParkingWindow.WndProc(Message & m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& 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

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)


Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.