M
Matt Barley
I have a multithreaded vb .net app that uses several datasets; all writes to
the datasets are synchronized using synclocks, no synchronization is used
for reads. No items or rows in the sets are being deleted, just updating
values. At random times it will break into the debugger with index outside
of the bounds of the array exceptions, when it does this the variable used
for the row index says it is zero which was normal and it even showed the
correct value for the item in the dataset. For example:
If CInt(CMPDAT.Tables(0).Rows(i).Item("ID")) = 0 Then
it showed that i was equal to zero and the value for "ID" was equal to one
which it should have been, but it still threw the exception?
Any help would be greatly appreciated.
the datasets are synchronized using synclocks, no synchronization is used
for reads. No items or rows in the sets are being deleted, just updating
values. At random times it will break into the debugger with index outside
of the bounds of the array exceptions, when it does this the variable used
for the row index says it is zero which was normal and it even showed the
correct value for the item in the dataset. For example:
If CInt(CMPDAT.Tables(0).Rows(i).Item("ID")) = 0 Then
it showed that i was equal to zero and the value for "ID" was equal to one
which it should have been, but it still threw the exception?
Any help would be greatly appreciated.