wxListCtrl and ClientData

BlitzMax Modules Forums/Brucey's Modules/wxListCtrl and ClientData

when i click the first Main Task i get the correct Sub Task.
the index is 0. does this refer column0?
when i click the second main task i get a null reference from:
Local sMainTask:TMainTask = TMainTask(m_listCtrl1.GetItemData(index))
index is 1

i don't think it has been GC'ed as it finds data for the first item, but i could be wrong