Just installed CW 9.2 and had to 'upgrade' my PNOlet project. When I try to compile I get "exception specification list mismatch" errors at the location of my overloaded delete functions. All they (currently) do is call (a function that calls) the MemPtrFree system trap.
The C++ compiler matches exception specifiers, even when exception handling is turned off. Your global new/delete operators need to match the specifiers used by the compiler.
For new, that is "throw(std::bad_alloc)", while for delete, it's "throw ()". You don't actually have to throw exceptions (and you can't from PNOs since we don't have the support code), but you need to match the C++ standard requirements.
I've just posted a source file
http://www.palmoswerks.com/gemsStorage/PNOInlineNewDelete.h
that you can download and use... it's a simple wrapper for all the various new/delete calls that works with PACEInterfaceLib.h in CW for Palm OS 9.2. This probably should have been part of the runtime library, but I didn't write it until two minutes ago :)
--
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/
