At 10:10 AM -0700 2002/05/23, Mike McCollister wrote:
>      case sysAppLaunchCmdSystemReset:
>         SysCurAppDatabase(&myCardNo, &myDbID);
>         SysNotifyRegister(myCardNo, myDbID,
>sysNotifyAppLaunchingEvent,
>                           NULL,
>sysNotifyNormalPriority, NULL);
>         break;
>
>      case sysAppLaunchCmdNotify:
>         switch(((SysNotifyParamType
>*)cmdPBP)->notifyType) {
>            case sysNotifyAppLaunchingEvent:
>               DEBUG_BEEP;
>               break;
>
>            default:
>               break;
>         }
>         break;
>
>Any ideas what the problem might be?

You didn't say what version of the Palm OS you're trying this on, but 
sysNotifyAppLaunchingEvent is only broadcast in Palm OS version 5 and later. So 
assuming you already know that, the main problem I see is the 
sysNotifyAppLaunchingEvent notification is not a sub-case of sysAppLaunchCmdNotify but 
is rather a "top-level" notification of its very own -- at the same level as 
sysAppLaunchCmdNotify. Try merging the case(s) of the inner switch into its parent.

Regards,

Jim Schram
PalmSource Inc.
Partner Engineering

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

Reply via email to