> 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. > > Tim Dean
Typically in your development environment, this will be handled for you "out of the box". For instance, Codewarrior has their own implementation of New.cp where the operator new is over written. They use the following macros to do this #define MALLOCFUNC(x) MemPtrNew(x) #define MFREEFUNC(x) MemChunkFree(x) Hope this helps. -- Mark F Rodriguez, Xaplos, Inc. | Email: [EMAIL PROTECTED] Senior Software Engineer | Phone: +1-561-784-5013 http://www.xaplos.com/ | Cell: +1-561-317-7633 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
