If I call ErrThrow in a shared library, can I catch it in main application prc?
Yes, this should work, but I've not tried it.
Will it work if I use the standard c++ throw instead of ErrThrow?
No. C++'s catch/throw are implemented using a totally different mechanism than the Palm OS ErrThrow/ErrTry/ErrCatch mechanism. The Palm OS mechanism will NOT destroy C++ objects on the stack as it unwinds -- it is very similar to setjmp/longjmp in its behavior, without the need to actually invoke a jump buffer at the longjmp call.
--
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/
