Yes there is a reset when someone pulls the card and the program can no
longer access the files it needs, so what you are describing is what I'm
seeing. So back to the original question, I guess the answer is that if it
is not deleted from system memory then I must assume that it is the result
of the above, and I should delete it. So to delete a file from system
memory what API do I use?
Chris Bruner
Compulife Software Inc.
==============================================
----- Original Message -----
From: "Ben Combee" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Monday, November 07, 2005 1:06 PM
Subject: Re: deleting a program currenty on the palm
At 01:03 PM 11/7/2005, you wrote:
I would like to run my program from the sd card, and I've noticed that if
the program is running and the sdcard is taken out, the program is copied
onto the main system memory. I can live with that, however I would like to
be able to detect and delete the program from the main system memory when
the program starts up.
Actually, Palm OS always copied the app from the SD card to system memory.
It runs programs "in place", which means they aren't copied to RAM on
startup, they're always in RAM. For SD cards, the apps are copied to RAM,
but they're marked for deletion on exit by the launcher. This usually
works, but it can be foiled by doing a system reset while the program is
active.
-- Ben Combee, Senior Software Engineer, Palm, Inc.
"Combee on Palm OS" weblog: http://palmos.combee.net/
Developer Forum Archives: http://news.palmos.com/read/all_forums/
--
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/