C++ console application in Visual Studio 2005.

Debug build runs fine from inside the IDE. When debug build is run outside the IDE it returns error codes and terminates.

Same exe, right? Why would this be?