At 06:22 PM 7/19/2005, you wrote:
Michal--that's a good idea, and I have now played quite a bit with the new operator today. But I'm having trouble with operator new[] and delete[]. I have found lots of advice on-line on how to override new and delete, but I haven't found any samples of how to override new[] and delete[] on-line or in Stroustrup's book. Do you have example implementations you could share with me?

That said, I have written an experimental version of new[]. If it's right, then my app is exiting as soon as I try to allocate a block that takes my total allocations above 200,000 bytes (not 200KB -- 200,000). Does this ring any bells with anyone as a limitation that might have been present in OS 4?

Many OS 4 devices only had 256K for the dynamic heap -- the larger dynamic heap sizes didn't really start appearing until Palm OS 5. If you need that much storage, it might be worth only supporting OS 5 and later.


-- Ben Combee, Senior Software Engineer, palmOne, Inc.
   "Combee on Palm OS" weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/


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

Reply via email to