of course new and delete work in c++ as expected. the only problem is that they throw exception if there is not enough memory what can cause problems if your application is big (exception handling eats a lot of memory for globals)
you can override new operator to not throw exception but return NULL if it will bother you, just search this forum to find how Ambrose Krapacs wrote: > We've been developing for PalmOS using C and I started looking into > starting some PalmOS C++ projects. My question, is it safe to use > new/delete in a c++ application? I ask because memory allocation is strict > with PalmOS programming, in C applications your only option is the Memory > Manager API. Will new/delete cause problems in a c++ application? > -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
