I know this question is very general, but I want to throw it out here:
What's causing this? It's an exception I can't catch because it's not
passing through any of my code. How would I even begin to troubleshoot
something like this?
I'm developing with Visual Studio .net 2002 for .net 1.0 framework.
What's interesting to note, if the ListView is never on screen, then
it crashes like this. But if the ListView is shown, then hidden,
everything works fine.
-----
System.NullReferenceException: Object reference not set to an instance
of an object.
at System.Windows.Forms.ListViewItem.UpdateStateToLis tView(Int32
index)
at System.Windows.Forms.ListView.OnHandleCreated(Even tArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ListView.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)
-----