Hi Ralf,

Ofcourse, should've figured that one out...

Thanks!

Ralf Dietrich wrote:
You can use dynamic heap in the ANY launch code situations. But you can't use objects is some circumstance (e.g. sysAppLaunchCmdFind), because they use globals for the virtual method table of the object.

Dan Bj�rkgren wrote:

Hi all,

The Companion states that with launch codes other than sysAppLaunchCmdNormalLaunch you don't have access to global variables.
Does this also mean that I can't allocate memory on the heap?
I tried to instantiate an object on the heap using new, but the member functions seems to point to 0x0??? The same object on the stack works like it should, and with sysAppLaunchCmdNormalLaunch it also works allocated on the heap.


/Dan Bj�rkgren


kindly regards,

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

Reply via email to