Hi ... I've just started working with PalmOS, and I had the same problems with my apps (written for Garnet). Try putting this at the end of PilotMain(), just before you return ...
FrmCloseAllForms(); That worked for me. Your mileage may vary. HTH, Travis. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Baruch Sent: Tuesday, February 14, 2006 10:28 PM To: Palm Developer Forum Subject: Debugging when simulator crashes? Hi all, I'm using CodeWarrior to write an application, and the Treo 600 and 650 Simulators from palmsource to debug it. The problem is, when I run the app through its paces and then hit the "home" button to exit the app, the simulator crashes hard -- the "Please tell Microsoft about this problem" crash, so there is no opportunity to find out what caused it to crash. There is some output to the debug console when the crash happens, but it doesn't seem to give information that will help find the problem: Bad chunk size INVALID HEAP DETECTED. HeapID = <0> While walking the Heap. Current heapP = 0x00B10000; size = 0x00300000 First chunkP = 0x00B10338 Current chunkP = 0x00DE8C08; size = 0x00000000 Prev chunkP = 0x00B16318; size = 0x002D28F0 PrevPrev chunkP = 0x00B15CE0; size = 0x00000638 Heap 0 invalid. Turning off checking. Process exit. Is there any way to find out what my app is doing that is causing the crash? I've already commented out bits and pieces of the app, and I've found a small section of code which, when commented out, fixes the issue, but the code seems fine to me. I'd try to run POSE, but my app is really meant for color devices, and I can't seem to find any color emulators. Any help would be appreciated! --Rob -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
