# Nothing happens when I run the application compiled with Visual C++

## Recommended Posts

ill    320
So I have a nice and complex project set up in visual studio and everything is great. Only I noticed just now that when I try to run my built application from just Windows Explorer instead of from within visual studio nothing happens. No process shows up in the task manager.

I did some googling and most problems seem to be from missing dlls and people get error messages popping up.

For me though it's on the same PC that I built it on and ran it on from within MSVS. I'm getting no info as to why the application isn't running.

My only ideas are that I configured something in the project properties incorrectly. Edited by ill

##### Share on other sites
fastcall22    10845
By default, the working directory of a project when run inside the IDE is the project directory ("[tt]$(ProjectDir)[/tt]"); outside of the IDE, it is the directory containing the executable ("[tt]$(TargetDir)[/tt]"). Double-check your program for safe handling of "missing" resources and other errors (print an error message, write to a file, and etc).

The working directory for the project in Visual Studio can be set under "General->Debugging" in the project properties. (Be sure to set it for all of your project configurations, otherwise you'll get a nasty surprise when you try to deploy your project!) Edited by fastcall22

##### Share on other sites
ill    320
Oh yeah that must be it. My application was logging errors to a text file and I should have checked it. My assets directory wasn't pointed to correctly and I probably need to change the working directory.

Normally I throw an exception. It's just weird that windows wasn't telling me an error occured when the exception went uncaught. So annoying.

##### Share on other sites
SiCrane    11839
You may be running into one of the situations [url=http://www.altdevblogaday.com/2012/07/06/when-even-crashing-doesnt-work/]when even crashing doesn't work[/url].

##### Share on other sites
MarkS    3502
[quote name='SiCrane' timestamp='1353961886' post='5004301']
You may be running into one of the situations [url="http://www.altdevblogaday.com/2012/07/06/when-even-crashing-doesnt-work/"]when even crashing doesn't work[/url].
[/quote]

Wow![img]http://public.gamedev.net//public/style_emoticons/default/blink.png[/img] [img]http://public.gamedev.net//public/style_emoticons/default/ohmy.png[/img] Thanks for posting that! I never would have guessed it was possible.