SysAppLaunch (cardNo, dbID, 0,sysAppLaunchCmdNormalLaunch,NULL,&result);
theoretically, you shouldn't use "sysAppLaunchCmdNormalLaunch" with SysAppLaunch since the calling (secondary) app doesn't have globals when it is lauched by SysAppLaunch. However, this is not the reason why you got error. in your function1 case, your app tells photo app to normal launch (but no globals), but photo app handles this normal launch code and must also acess some globals which are not available at this special case, so error! therefore, to be safe, don't use "sysAppLaunchCmdNormalLaunch" inside SysAppLaunch. to answer you eventual question, if you have access to photo's code, look for its launch code (not normal launch code) which can handle yoru requirement and doesn't access globals. But if photo app is system app, then you might be stuck unless this app provide this support by itself. good luck -mguo -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
