When you do a MemHandleLock() it 'locks' a record for usage. The maximum for lock
count is 15, so it sounds like you're calling this routine 3x each time you run and
after 3x it's crashing on you... each MemHandleLock() needs to be paired with a
MemHandleUnlock()... also, since it's happening across multiple runs of your app, my
suspicion is that it's a DATA chuck that's being overlocked... otherwise the chunk
would disappear during SysAppExit() cleanup. To find this, try running your app 2x,
then open the Palm OS console and do an 'hd 1' to dump the data heap. you should see a
chunk with a big lock count.. that's the error!
Alan Pinstein
Synergy Solutions, Inc.
http://www.synsolutions.com
1-800-210-5293
a BarPoint.com Company
>I get a "Chunk Over Locked Error" after running my app about 5 times without
>doing a hardware "reset". My question is what does this error mean, and how
>is it caused? Am I not unallocating memory somewhere, some how?
>
>Thanks,
>Jason
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe, please see
>http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html