What is the prefered method for allocating memory on the heap dynamically for objects created with C++? Right now I use the keyword new. Is it better to use MemHandleNew? If so, how would you do this? Thanks.
new uses MemPtrNew to allocate its memory. If you don't use operator new, the constructor for your object won't be called. If your object is so large such that having it allocated outside a handle is a problem, you may want to implement it so the object wraps a MemHandle which is used to store all of your real data.
--
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/
