Hi,
I have learnt that every C++ class should have a virtual destructor, because of inheritance implementation, virtual ensure that the good destructor is called.


BUT when not sysAppLaunchFlagNewGlobals, I can't use a class that has a virtual destructor because it needs global variables. So I removed the "virtual" keyword from parent and child destructors. I noticed that both destructors are called anyway !
I'm quite sure that something is wrong here, any idea would be appreciated.


Moreover, it is written in doc "targeting_palm_os.pdf" that new and delete cant be called if !sysAppLaunchFlagNewGlobals because they throw exceptions and this needs globals.

HOW CAN YOU PROGRAM IN C++ IN THOSE CONDITIONS ???

Thanks for any info.
--
Riccardo Cohen

Articque
Les Roches
37230 Fondettes
France
web = http://www.articque.com
tel: +33 02 47 49 90 49
fax: +33 02 47 49 91 49


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

Reply via email to