Game Development Community

c++ Debugging

by RollerJesus · in Torque 2D Beginner · 12/13/2015 (6:35 pm) · 2 replies

When I start my application from Visual Studio, the app runs through the winWindow.ccs\S32 PASCAL WinMain function then exits.

When I start the app in the output folder, it runs the game.

Is this occurring because Visual Studio runs the app *before* copying it into the output directory so it doesn't find any modules?

Any way around the issue?

#1
12/13/2015 (7:39 pm)
Try this:

In VS, right click the Torque2D project and click Properties. Under the Configuration Properties -> Debugging section you'll see Working Directory. This needs to be changed to $(OutputPath) I believe.
#2
12/14/2015 (7:54 am)
Thanks for the response Chris. That did the trick! Appreciate the help.