So, is there some mechanism where the OS can notify me when memory is getting too low so that I can free up some of my stuff? In theory I could probably away with something like this by replacing system calls, but that gets ugly and possibly unsafe really quickly.
You might want to allocate an emergency buffer at program start and funnel allocations through a routine that will first try MemPtrNew, and if it fails, free the emergency buffer and try again, sending a "low memory" notification at the same time.
-- 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/
To unsubscribe send an email to [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
