At 8:14 AM -0800 4/7/99, Shaolin Hu wrote:
>Everytime I reload my application (to Emulator or Device) and run it, it
>blows up at the very beginning with
>the error "MemoryMgrNew.c Line 4498 Chunk under-locked.". It runs ok after a
>reset and it does not happend
>if I'm sitting in the Pref screen. I have learned to live with it, but I
>would like to know is there something I can
>put in my code to prevent this from happening. Thanks.

The good news: there's probably something you can do.

The bad news: you'll have to debug a little to find it.

Chunk under-locked happens when someone calls MemHandleUnlock on a handle
that is already completely unlocked.  So you want to carefully examine any
calls you make to MemHandleUnlock during launching of your app.

Debugging should be easy.  Get the PalmDebugger app and next time it
happens, hit "Debug" in Poser.  Then look at the stack trace ('sc') and you
should pretty quickly be able to tell what was executing when the error
happened.

Knowing which handle was being unlocked too many times should be a really
big clue in tracking this down.

                                --Bob


Reply via email to