Matthew D Moss wrote:
> I know that CodeWarrior's virtual function table pointer is in global space
> and is therefore problematic when dealing with certain PalmOS launch codes
> that don't initialize the global space.
>
> Wondering if anyone has tried C++ exception handling w/CodeWarrior on Palm.
> Does it suffer the same effects, or is it safe (and efficient) to use?
Its fine to use with the consideration that you stated above i.e. don't use it when
globals are not available.
I partition my apps into 'Entry' modules and 'Normal' modules. Entry modules have the
'#pragma exceptions off' statement in their
implementation so that I don't accidentally try to use throw, catch etc. These modules
deal with the non-global scenario launch
codes and contain any of their dependencies.
Normal modules use exceptions as you would on any other platform. I've found it
efficient to just throw Err type variables;
throwing classes bloats your code by about 5k (from what I recall).
You might want to check out my freeware C++ application framework for PalmOS (Teenee).
There are examples within Teenee of
exception handling etc.
'hope this is useful to you.
-C
--
Christopher Hunt
Class Action Pty. Ltd.
Complete time zone management for the Palm(tm) connected organizer.
Check out http://www.classactionpl.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html