If you are crashing during reset, you are most likely trying to access global 
variables during the reset launch code.  Get rid of the access of globals and you 
won't have your infinite reset problem and then you can move on to your other 
problems.  It seems that most of the time people are having this problem it's because 
they tried to store their version number for the RomCompatibilityCheck in a global....

Kevin

-----Original Message-----
From: Steven Fisher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 9:40 AM
To: Palm Developer Forum
Subject: Notifications, launch codes


I really don't understand how to use notifications with launch codes. 
I've been using procedure pointers to this point, since the notification 
is only supposed to run when my application is running. However, I've 
found that if my application crashes and the user has to reset the Palm 
device, it gets caught in an infinite loop of crashing as it is trying 
to restart itself. It probably isn't really necessary to go this far, 
but I've been doing factory default restarts to get out of this. I do 
not want users having to do this!

Now, obviously I'm going to fix all the crashes in my application. But 
at the same time, there's no way I want to leave the Palm in this state 
under any circumstancs. So I have to use launch codes.

So... when I get a new launch code, that's really a new instance of my 
application, right? How do I tell if there's another instance of my 
application running? (If I do this blindly, I'll be no better off than 
before.) How do I "get to" the old instance? What exactly does "get to" 
mean in this context?

I have three notifications:

The first is for device wake up; it presents a password entry screen if 
Palm OS password protection is off. This is intended to bglock users 
from using my app, but not others.

The other two are for card insert/eject. I want to change what is on one 
of my forms depending on the contents of the card (or the lack of a card).

How do I do these? If anyone has some sample code that could help me 
along I'd be grateful. I know I'm probably being annoyingly vague here, 
so I'm more than ready to supply more information. I'm just not at all 
sure what's useful. :)

Thanks in advance!


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


------------------------------------------

The information in this transmittal and any attachments is privileged and confidential 
and is intended only for the recipient(s) listed above. You are hereby notified that 
any unauthorized distribution or copying of this transmittal or its attachments is 
prohibited. If you have received this transmittal in error, please notify Invivodata 
immediately at (831) 438-9550.

------------------------------------------


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

Reply via email to