It's very possible that Poser's stack overflow heuristics are getting confused
by the stack unwinding performed by exception throwing. If you have an example,
I could take a look at it.

-- Keith Rollin
-- Palm OS Emulator engineer






"Etienne Fortin" <[EMAIL PROTECTED]> on 04/09/2000 08:52:55 PM

Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>

Sent by:  "Etienne Fortin" <[EMAIL PROTECTED]>


To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
cc:    (Keith Rollin/HQ/3Com)
Subject:  Stack overflow with exception handling




Hi,
    I just made my first test with PRC-Tools and my Palm IIIe. I started
with C, and everything is working fine. Since I program a lot in C++, I
decided to try it with my Palm. The example is really simple: I wanted to
test the use of exception handling. I coded a very simple function that do
only one thing, throw a standard "exception" object.

    The code compiles ok, gcc doesn't give any compilation error. But the
emulator IS giving an error, and a huge one: Stack overflow. I know that
exception handling is consuming more stack space, but having an overflow
with just a single little throw? I find that rather strange. My theory is
that some information is missing from the stack, but I have no way to verify
that.

    Does anyone here encountered the same problem? I'm sure I'm not the only
one trying to use C++ with a Palm...

    Thanks in advance,

Etienne Fortin










--
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

Reply via email to