> I'm not sure I understand your question correctly but form the > docs: "To prevent the VFS Manager from activating the start.prc
You don't understand my question correctly. I am not asking how to prevent start.prc from running. I am asking how to detect whether it is the Launcher that is currently running at the moment when I receive a notification. My application is registered to receive the sysNotifyVolumeMountedEvent notification with a sysNotifyNormalPriority priority - which is higher than that of the VFS Manager. My application is supposed to be notified about this even first and do its thing. Only then the VFS Manager gets the notification and I don't care if it runs start.prc or not.
Nevertheless, grasping for straws, I tried setting the handled flag in the way you suggest. The problem remains exactly the same - a crash occurs if the card is inserted while the Launcher was running. Next idea, please? :-)
The reason why you're getting an extra appStopEvent when the launcher is running is because the launcher also registers for the sysNotifyVolumeMounted notification, and it uses that to relaunch itself (ultimately calling SysUIAppSwitch) with a custom code telling it to switch displaying programs from the just-launched volume. I expect there's a timing clash here, as the launcher is storing some values for its use, but its app switch is being eaten by your app switch, but it doesn't recover from that situation well.
You may be able to fix this by registering for sysNotifyNormalPriority - 1, ensuring that you're notified just after the launcher, and your SysUIAppSwitch will override the launcher's.
-- Ben Combee, Senior Software Engineer, palmOne, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Forum Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
