NListView Items.Clear exception


https://www.nevron.com/Forum/Topic6454.aspx
Print Topic | Close Window

By Brad Swearingen - 12 Years Ago

I'm on build 11.12.14.12.  When using the NListView and calling the Items.Clear() method I often get this exception (in Release mode build):

Application Unhandled Exception : InvalidArgument=Value of '0' is not valid for 'index'.
   at System.Windows.Forms.ListView.GetItemRect(Int32 index, ItemBoundsPortion portion)
   at Nevron.UI.WinForm.Controls.NListView.l1lII11ll1(Message& m)
   at Nevron.UI.WinForm.Controls.NListView.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)