P
Paul Lo
Dear all,
I'm writting a .net winForm application with C#, but I'm getting the
following exception when the user scrolls a scrollbar. The strange thing is
that the exception happens only some of the time, and seems pretty random.
However, once an exception occurs with a scrollbar and when I choose
'continue', that particular scrollbar will raise the exception everytime I
click on it from that point on.
Anyone encounter the same problem before? Any solution to this problem?
At the very least I wanna know how I could catch that exception..
Thanks~!
Paul
************** 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.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.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)
I'm writting a .net winForm application with C#, but I'm getting the
following exception when the user scrolls a scrollbar. The strange thing is
that the exception happens only some of the time, and seems pretty random.
However, once an exception occurs with a scrollbar and when I choose
'continue', that particular scrollbar will raise the exception everytime I
click on it from that point on.
Anyone encounter the same problem before? Any solution to this problem?
At the very least I wanna know how I could catch that exception..
Thanks~!
Paul
************** 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.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.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)