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.

* Is a stack size of 6144 too big? E.g., am I going to have performance or other issues down the road?

* 6144 is somewhat of a multiple of 2 -- 6*1024. In setting stack size, are there preferred multiples, or can they be arbitrary.

Regardless as to whether or not the culprit was the stack size, I curious to know more of the art of setting stack size.

Thanks,
Rich



-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to