我有一个在 VS.NET 2003 中开发的 Windows 应用程序。有时我会从 CallWindowProc() 获得 System.NullReferenceException 异常。
这是异常的堆栈跟踪
Error_Stack_Trace:在 System.Windows.Forms.NativeWindow.DefWndProc(Message& m) 在 System.Windows.Forms.NativeWindow.DefWndProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam) .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 (消息和 m)在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,Int32 msg,IntPtr wparam,IntPtr lparam)
请帮我解决这个错误。
谢谢和问候,贾加迪斯。