At 19:47 2002-12-9 -0500, you wrote:
First, did you really need to hard reset? Did you try a soft reset with no notifications? You do this by holding the up key while resetting the device, and it can get you out of a lot of situations.OK, I have a PalmIII and when I tap Menu >> Info, I find out that I have 1942K of 1952K Free Memory. When I perform the Hotsync on the app in question, it still gives me that fatal error and resets itself and freezes on the title screen of the Palm. The only way I can get out of this is to perform a hard reset with a erasure of data. I also get no useful information about the cleaning up step in the Palm Desktop log. It just tells me that the hotsync completed and the date and time.So, my first data segment did show that it was over 64K, to my surprise, since it ran on POSE. So, I was able to lower it to 59K and I got the same results -- worked on POSE, hotsync failed on cleanup on physical device. Next, I noticed that the RAM size that POSE gave me was set to 8192K. This is obviously higher than 1952K, so I lowered the available RAM on POSE to the next lowest amount of RAM allowed, which was 1024K. With just 1024K, the app still ran properly, which it should since the app is now down to 707K in size, according to WinExplorer. Needless to say, I am out of ideas. However, I am curious about why my Palm has a max of 1952K, not 2048K or one of the available sizes on POSE.
The data segment for your app is allocated from the dynamic heap at runtime. A Palm III running Palm OS 3.0 (or even 3.3) won't usually have 59K free on the dynamic heap for your data space. Running a later OS can help, but that's still a pretty large data segment.
What version of Palm OS are you running on POSE? Palm OS 3.5 allocated more memory to the dynamic heap than earlier version of Palm OS.
Read the Palm OS Companion's article on memory management for more details, and also check out my article at http://www.hhcenterprise.com/Developer/Issue2/Secret_World_PalmOS.htm for info on how apps startup and use memory.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
