I do a hotsync call from my application and I want to return to my app 
after the hotsync, but after the hotsync i get an object not in form error, 
why is that? I've serched everywhere and haven't found what is wrong.

thank you for your attention.

here is my pilotmain:

if (cmd == sysAppLaunchCmdNormalLaunch)
{
db=DmOpenDatabaseByTypeCreator('appl','BlBX',dmModeReadOnly);
error=DmOpenDatabaseInfo(db,&dbID,NULL,NULL,NULL,NULL);
SysNotifyRegister (0,dbID,sysNotifySyncFinishEvent,NULL,-15,NULL);

error = StartApplication();
if (error) return error;
EventLoop();
StopApplication();
}

// after every hotsync
if (cmd == sysAppLaunchCmdNotify)
{
arg=(SysNotifyParamType *)cmdPBP;
if( arg->notifyType == sysNotifySyncFinishEvent)
{
db=DmOpenDatabaseByTypeCreator('appl','BlBX',dmModeReadOnly);
error=DmOpenDatabaseInfo(db,&dbID,NULL,NULL,NULL,NULL);
return SysUIAppSwitch(0,dbID,sysAppLaunchCmdNormalLaunch,NULL);
}
}

// if there are modified databases
if (cmd == sysAppLaunchCmdSyncNotify)
{
db=DmOpenDatabaseByTypeCreator('appl','BlBX',dmModeReadOnly);
error=DmOpenDatabaseInfo(db,&dbID,NULL,NULL,NULL,NULL);
SysNotifyRegister (0,dbID,sysNotifySyncFinishEvent,NULL,-15,NULL);
}



Ingo Claro Fox
[EMAIL PROTECTED]


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

Reply via email to