The worst case you should plan for is about 44K on an OS3.0, 2 Meg device. Alan "Laurens" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I should add that I mean the dynamic heap, not the storage heap. > > Interestingly when I run a test program to obtain heap sizes on my M130's > ROM image I get the following values: > > id: 0, size: 249kb > id: 1, size: 7935kb > id: 2, size: 3199kb > > I assume the first heap is the dynamic heap, the second the storage heap and > the third the OS ROM. > > This is the code I used to obtain the output: > ---------- > HostTraceInit(); > for (int i = 0, n = MemNumHeaps(0); i < n; i++) { > UInt16 id = MemHeapID(0, i); > UInt32 size = MemHeapSize(id); > HostTraceOutputTL(appErrorClass, "id: %hu, size: %lukb", id, > (size/1024)); > } > HostTraceClose(); > ---------- > > Thanks > -Laurens > > >
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
