Hi all,

I'd like my app to terminate as soon as the SD card (from which it runs
and that holds all the data, etc.) is pulled out of the device. When the
app gets (sub-)launched with a sysNotifyCardRemovedEvent notification, I
put an appStopEvent on the event-queue, expecting the app to quit
'gracefully'.

It doesn't.

I get a Fatal Alert (MemoryMgr.c, Line:3651, Free handle) and the device
crashes (hangs). The strange thing is, when I try to find out where the
crash occurs (by printing messages to the screen with WinDrawChars), I
find that the crash must occur _after_ pilotMain has terminated. The
message I print right before the return statement (and yes, i simply
return a variable, not a function call...) gets printed...

If the app gets killed by clicking the 'home' button, it just terminates
without problems.

Could anyone give me any tips on how to debug this? (Keeping in mind
this is quite a large, complex app with a PNO-let, so 'stepping through'
the code is out of the question). Or alternatively, a different way of
closing my app as soon as the SD card is pulled out?

Thanks & regards,

Caspar 

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

Reply via email to