Bob, I was using the appFileCreator variable that is up top of the file with a #define. I took out those calls and replaced it with the accutal value of my creatorID. and it still did the same thing. Is there a problem calling static functions when an alarm is triggered?
-- Scott Erickson Software Development Team, FB-4, Inc. [EMAIL PROTECTED] "Robert Moynihan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Scott Erickson wrote: > >>Hi, >> Heres the deal. Im using an alarm to let the user set a auto update >> setting. For example, they can set it to update the virus def file every >> 1 hour. Right now I have it set to around 1min. when i activate the >> alarm, it works fine ONLY if the app is already running. if im at the >> menu, or any other app, it just gives a soft reset when the alarm is >> triggered. If i turn it on, and sit at the apps home screen, the alarm >> is triggered, it does the silent update, and the user cant even tell it >> did anything, but the update logs show that it did run the update. in >> pilotMain() i am handleing both types of launch codes for the alarms, >> sysAppLaunchCmdAlarmTriggered - which i just use a function call do >> cmdPBP->purgeAlarm = false;, and then sysAppLaunchCmdDisplayAlarm: calls >> a function to run the silentUpdate. In silentUpdate, there is no use of >> Forms or any type of UI interaction or global variables, basicly just a >> netlib open call and a few socket calls to download the new virus def >> file, and some stuff to process the new file. I also dont have any static >> local variables in the code it tries to execute after the alarm. Any >> ideas for the soft reset when the app isnt running? >> > It sure SOUNDS like a global variable issue. Does it do that in both the > sim and on the real device? Can you not debug it to find which part of > your code is triggering the crash? Bob. > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
