Game Development Community

VC++ .NET Debugging

by Stephen McCloskey · in Torque Game Engine · 02/03/2003 (12:12 am) · 3 replies

I am able to compile the demo app just fine, however, I am not able to run it at all from within Visual Studio .NET. If I navigate to the "example" directory and manually execute the app, it runs fine. However, if I try to start it from the IDE in debug mode, the console comes up but it gives me a "Failed to open main.cs" error. It seems to bomb out when the filestream is opened for main.cs. It acts like the file is not there. Does anyone have any advice?

Thanks.

#1
02/03/2003 (1:29 am)
It looks like I solved the problem. If you go into the debugging tab of the properties window, you can set the working directory. This should be set to the directory where he exe resides. If you don't set this, then the debug process gets confused about where the app is and consequently where the file is.
#2
02/04/2003 (2:49 pm)
For me TorqueDemo won't even compile on VC++ .NET unless I put Torque specifically in "c:\torque". I thaven't bothered to find out how to change it.
#3
02/08/2003 (12:43 am)
Sometimes post-build events like dos names. So, if you have torque in path where a folder has spaces in the name, it will fail.