On Jun 27, 2007, at 9:32 PM, Alfred Van Hoek wrote:
>
>
> If we don't unlock we leak sometimes, and if we do unlock, we crash
> after a couple of times, because the destructor of the stored object
> was called. The crash occurs then when myDict.value(key) is called.
I would investigate the code immediately after adding the object to
the dictionary to ensure that there isn't an extraneous unlock call
around there. It is necessary to unlock on return, but I'm guessing
there is some other location that you're calling it that isn't correct.
Sorry I can't give any more specific issues -- these are the hardest
to debug. I'd suggest printing out each object address REALLock/
UnlockObject is called on, and seeing where the unbalanace lies.
HTH,
Jon
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|