Game Development Community

Cannot run T2D from VS2012

by Daniel Buckmaster · in Torque 2D Beginner · 03/23/2013 (5:34 am) · 4 replies

EDIT: This is Windows 7 64bit, VS2012 4.5.50709 and T2D development branch at 7e37d4.

I've managed to compile and run T2D fine in Xcode. However, on my PC using VS2012, while I can compile fine, if I hit the debug button, T2D exits immediately without even opening a window. If I double-click the compiled executable everything works fine.

Has anyone else run into this?

VS2012 seems to receive some sort of log before the engine shuts down. It looks like this:
'Torque2D_DEBUG.exe' (Win32): Loaded 'H:TorqueTorque2DTorque2D_DEBUG.exe'. Symbols loaded.
'Torque2D_DEBUG.exe' (Win32): Loaded 'C:WindowsSysWOW64ntdll.dll'. Cannot find or open the PDB file.
'Torque2D_DEBUG.exe' (Win32): Loaded 'C:WindowsSysWOW64kernel32.dll'. Cannot find or open the PDB file.
'Torque2D_DEBUG.exe' (Win32): Loaded 'C:WindowsSysWOW64KernelBase.dll'. Cannot find or open the PDB file.
... lots more of this
--------------------------------------------------------------------------------
Processor Initialization:
   AMD (unknown), ~3.15 Ghz
     (timed at roughly 3.16 Ghz)
   FPU detected
   MMX detected
   3DNow detected
   SSE detected
 
--------------------------------------------------------------------------------
Math Initialization:
   Installing Standard C extensions
   Installing Assembly extensions
   Installing FPU extensions
   Installing MMX extensions
   Installing 3DNow extensions
   Installing SSE extensions
 
--------------------------------------------------------------------------------
Input Initialization:
'Torque2D_DEBUG.exe' (Win32): Loaded 'C:WindowsSysWOW64dinput8.dll'. Cannot find or open the PDB file.
... and more
   DirectInput enabled.

'Torque2D_DEBUG.exe' (Win32): Unloaded 'C:WindowsSysWOW64dinput8.dll'
'Torque2D_DEBUG.exe' (Win32): Unloaded 'C:WindowsSysWOW64setupapi.dll'
... several more of these
The thread 0xcd4 has exited with code 0 (0x0).
The program '[5072] Torque2D_DEBUG.exe' has exited with code 0 (0x0).

About the author

Studying mechatronic engineering and computer science at the University of Sydney. Game development is probably my most time-consuming hobby!


#1
03/23/2013 (6:06 am)
From Melv:

Quote:I believe it's worth mentioning that when wanting to run Torque 2D under Visual Studio itself then you must change the working directory yourself to be the "TargetDir" and not the default of "ProjectDir". Unfortunately we cannot set the correct default as the value is only persisted as part of the users personal settings, something we do not want to keep under source control.

Nobody has asked this which obviously suggests that folks are running the executable directly however I wonder if that's because it's preferred or if it's because there's a misconception that you can't run it under Visual Studio. If you try to run it without this change then nothing happens as the executable just exits.
#2
03/23/2013 (9:32 am)
... or it can be seen in pictorial form here.
#3
03/23/2013 (1:32 pm)
Oh dear - where was that from? I went through the getting started guide but I don't recall seeing that. Thanks, guys!
#4
03/24/2013 (12:27 am)
AFAIK it's not in that guide. The quote Mich put up was an email I sent a while ago asking that this info be but on the wiki. It still needs to be. :)