>  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? :-)

BTW, folks, the problem definitely lies in the fact that I'm getting an 
unexpected appStopEvent event when the Launcher is running. Just as a test, I 
reverted to my old code - the one that doesn't try to launch itself but simply 
goes to the memory card scanning form and starts the event loop. That code 
shows exactly the same behavior - it works perfectly, if some application (not 
necessarily mine) was running when the notification about the 
sysNotifyVolumeMountedEvent event arrived. If, however, it was the Launcher 
that is running when the notification arrives, I get an unexpected 
appStopEvent, my event loop terminates early, and everything gets screwed up. 
:-((

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

Reply via email to