tsw123
8th April 2009, 10:46 AM
I've got an app that I've installed onto a media card that then needs to call CreateProcess to launch a second app on the card,.
When I eject and then reinsert the card in between launching the original app, and the createprocess call, I get an 'Invalid application' failure on the CreateProcess call.
The call I'm using is
CreateProcess(path, arguments, NULL, NULL,
FALSE, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &process)
The app works absolutely fine if the card isn't ejected after the first app is launched.
The app currently isn't signed either. The two apps also share a DLL.
Is there something I need to do to the file system to tell it to resync (to correctly detect the DLLs)?
Thanks in Advance
When I eject and then reinsert the card in between launching the original app, and the createprocess call, I get an 'Invalid application' failure on the CreateProcess call.
The call I'm using is
CreateProcess(path, arguments, NULL, NULL,
FALSE, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &process)
The app works absolutely fine if the card isn't ejected after the first app is launched.
The app currently isn't signed either. The two apps also share a DLL.
Is there something I need to do to the file system to tell it to resync (to correctly detect the DLLs)?
Thanks in Advance