0

VS.NET 2003 で開発された Windows アプリケーションがあります。CallWindowProc() から System.NullReferenceException 例外が発生することがあります。

例外のスタック トレースは次のとおりです。

Error_Stack_Trace : System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam) で System.Windows.Forms.NativeWindow.DefWndProc(Message& m) で System.Windows.Forms.Control .DefWndProc(Message& m) で System.Windows.Forms.Control.WmUpdateUIState(Message& m) で System.Windows.Forms.Control.WndProc(Message& m) で System.Windows.Forms.ScrollableControl.WndProc(Message& m) で System. .Windows.Forms.ContainerControl.WndProc(Message& m) System.Windows.Forms.ParkingWindow.WndProc(Message& m) で System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) で System.Windows.Forms.ControlNativeWindow.WndProc (Message& m) System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam,IntPtr lparam)

このエラーを解決するのを手伝ってください。

ありがとう、よろしく、ジャガディーズ。

4

1 に答える 1

2

The System.NullReferenceException exception is thrown when an null object reference is dereferenced.

In your application, you should make sure that you are not passing around Null values which should be set to valid data. The stack trace you provided is not enough to trace where the error occurs.

于 2009-11-18T17:07:55.693 に答える