Hi,
My application is crashing immediately after hotsync!!
My application is processing the 'sysAppLaunchCmdSyncNotify' and
calling a function that is supposed to open two databases and sync
some of the records. I found that I cannot open one particular
database. I can open a database that has the same creator ID as the
application. Why?? Can I open two seperate databases
after 'sysAppLaunchCmdSyncNotify' notification?
I tried to register the hotsync finish event (sysAppLaunchCmdNotify)
but the program does not seem to be coming here after the hotsync. I
register the event like this in my StartApp() routine:
SysNotifyRegister
(0,CreatorID_of_myApp,sysNotifySyncFinishEvent,NULL,sysNotifyNormalPri
ority,NULL);
And then, check for following in my starterPalmMain()
case sysAppLaunchCmdNotify:
myFunction();
break;
Further, I get compiler errors if I do this,
if(cmdPBP->SysNotifyParamType.notifyType == sysNotifySyncFinishEvent);
myFunction();
Compiler is not able to find the strcuture cmdPBP. I think the system
must pass me pointer to this (cmdPBP) structure. Am I correct?
thanks,
Pramod
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/