At 02:01 PM 11/17/2003, Eric Potter wrote:
I have a rather large shared library. (40K size, 68 entry points).
When I compile it with in debug mode it runs fine, but when I compile
it in release mode, it crashed when I call certain functions. The
eroro message i get is that my application just read from an unused
portion of the stack. Since it works in debug mode, I believe the
problem is in the project setup. Does anybody have any idea what the
problem might be?

The release mode version is probably compiled with optimizations. This can cause more or less stack usage depending on how the optimizer inlined and rearranged code. Also, some variables which would be in memory with the debug one would now be in registers, so if they weren't initialized correctly, you can get different behavior.


--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



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

Reply via email to