The usual problem that leads to this error message is when you return a pointer or 
reference to an object/variable local to the function returning it.  However, I can't 
explain why you are seeing a difference between debug and release builds.

If you have Macsbug symbols enabled for your project (which you can do even for 
release builds), you should be able to enter your debugger and see what function is 
causing the problem.  Perhaps that will give you enough context to determine what's 
going on.

-- Keith

> -----Original Message-----
> From: Eric Potter
> Sent: Monday, November 17, 2003 12:02 PM
> To: Palm Developer Forum
> Subject: shared libriaries and accessing unused portions of the stack
> 
> 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?

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

Reply via email to