Jeff Ondich wrote:
> 
>> 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.
> 
> 
> Is there a way to test for the available heap size?
> 
  MemHeapFreeBytes(0,&free_bytes,&max_available_block);


> 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?

  sorry, i don't like c++ very much so when possible i avoid it. so i never
needed this... (i use MemPtrNew for allocation and MemPtrFree to free). but i
think that for prctools there is some library and when it is linked with
application then new is not throwing exceptions. maybe there is something
similar for codewarrior too?

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

Reply via email to