This project has moved. For the latest updates, please go here.

Unhandled exceptions on history tab

Topics: Errors
Feb 16, 2016 at 1:09 PM
Hi.
Thanks for your work!

I found two exceptions on history tab of edit dialog. May be they are low but both are unhandled.
Steps to reproduce
1.
  • open task edit dialog on existing task
  • go to history tab and close dialog before loading is ended.
"Object reference not set to an instance of an object."
   at System.Windows.Forms.ListView.InsertItems(Int32 displayIndex, ListViewItem[] items, Boolean checkHosting)
   at System.Windows.Forms.ListView.ApplyUpdateCachedItems()
   at System.Windows.Forms.ListView.Sort()
   at System.Windows.Forms.ListView.ListViewNativeItemCollection.AddRange(ListViewItem[] values)
   at System.Windows.Forms.ListView.ListViewItemCollection.AddRange(ListViewItem[] items)
   at Microsoft.Win32.TaskScheduler.TaskHistoryControl.historyBackgroundWorker_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e) in C:\spb.Common Components\TaskScheduler\TaskService\TaskEditor\TaskHistoryControl.cs:line 239
2.
  • open task edit dialog on existing task
  • go to history tab
  • try to sort any column before loading is ended.
"Object reference not set to an instance of an object."
   at System.Windows.Forms.ListView.ListViewNativeItemCollection.get_Item(Int32 displayIndex)
   at System.Windows.Forms.ListView.ListViewItemCollection.get_Item(Int32 index)
   at System.Windows.Forms.ListView.WndProc(Message& m)
   at System.Windows.Forms.ListViewEx.WndProc(Message& m) in C:\spb.Common Components\TaskScheduler\TaskService\TaskEditor\Native\ListViewEx.cs:line 183
Feb 16, 2016 at 1:20 PM
The second error I temporally suppressed by try|catch in ListViewEx.WndProc(ref Message m) .

try{ base.WndProc(ref m); }catch {}
Coordinator
Feb 16, 2016 at 5:31 PM
Both are fixed in 2.5.15, due shortly. Thanks for the posts and detail.
Feb 17, 2016 at 2:59 PM
Thanks!