I have a strange problem accessing elements of an LArray from within a
networking task. From several different methods, I do something like:
int i = 1;
Boolean found = mMessageSetArray->FetchItemAt( i, inUse);
Most of the time this works fine. But when called at the end of the
task, found is true, but inUse is nil; All data members of the LArray
look fine, identical to before when it works. The strange part is that
when it works, before calling FetchItemAt, inUse looks like a proper
pointer in the CW de *** . It has a disclosure triangle which when
revealed, shows the data members of my SMessageSetInUse class. When it
doesn't work, inUse has no disclosure triangle and shows 0x000000 in
the de *** , which is odd since I don't initialize it to nil.
If my virtual function table was wiped out, I would expect the app to
crash badly, and it doesn't. But for some reason the de *** no longer
knows about the SMessageSetInUse class. Something is screwed up. After
stepping through the code countless times, everything looks perfect,
except that pointer.
Anyone have any idea what could be going on?