Hi agraham,
I have another reference to imagelist because I draw direct on this image. Reference is:
Code:
track.New2(ImageList1.Item(0),B4PObject(5))
and I found that the reference has to be set again after an new images was loaded. But I can't find a command to delete or dispose a drawer object. I have had the same problen on the device and I catched it with an error handler and repeated deleting imagelist and problem was solved. This is the part the error occurs on PC (after a lot of loadings, but always index 0):
Code:
Sub btdel_Click
If Not(tbtrack.Text = "enter track") Then
If Msgbox("Delete current track/trace?","Delete",cMsgBoxYesNo,cMsgBoxQuestion) = cYes Then
ImageList1.Clear
ImageList1.Add(OpenDialog1.File)
track.New2(ImageList1.Item(0),B4PObject(5))
.
.
.
Sometimes I reload the same file to correct some wrong drawings.