Hello
I asked once, but I've got no reply...
My problem is, that I have enough free heap (almost 60kB), but too small max. free
block (29kB). How is it possible to defragment heap? MemHeapCompact doesn't
help.
My code looks like this:
MemHeapFreeBytes(0,&x1,&x2); //only test, this shows nearly 60kb
free heap and 50kb max free block
ok=SelectDay(selectDayByDay,&(xxl.month), &(xxl.day),&(xxl.year),"tum");
MemHeapFreeBytes(0,&x1,&x2); //only test, but now this shows same
amount of free heap as before, but only 29kB long max. free block - and not every
time...
I have to allocate 32kB later in my program and _sometimes_ it fails, I
believe it is because of this strange 50->29 reduction
Is there any known bug with SelectDay() function?
I use PalmOS3.5 on Handspring Visor Platinum and Metrowrks CodeWarrior r6
Please reply to my email as well (if possible)
bye
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/