Subject: Re: Invalid chunk ptr after exiting app
From: "Richard Coutts" <[EMAIL PROTECTED]>
Date: Sun, 27 Feb 2005 14:48:48 -0500
> FWIW, the exact error is "MemoryMgr.c, Line:3757, Invalid chunk ptr"
> running on the T3 Simulator, Palm OS 5.2.1.
I just bumped up my "pref - stack size" from 5120 to 6144 and the problem
went away. I'm not too savvy on the black magic of some settings like the
stack size, so I have a couple of questions:
* Does the stack size seem like it could have been the problem in the first
place, or have I simply altered things such that I may still have a bug in
my code.
Overrunning the stack could definitely cause your problem.
* Is a stack size of 6144 too big? E.g., am I going to have performance or
other issues down the road?
Not a problem on any modern Palm OS unit.
Regardless as to whether or not the culprit was the stack size, I curious to
know more of the art of setting stack size.
Use maximum stack tracing in POSE with debug ROMs.
Also you might place your own stack traces in the program and
(when in debug mode) post up an alert when free stack drops
below (say) 1K.
Roger Stringer
Marietta Systems, Inc. (www.rf-tp.com)
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/