Game Development Community

TGEA 1.8.0: Assert when starting Torque.

by Stefan Lundmark · in Torque Game Engine Advanced · 12/17/2008 (2:30 pm) · 5 replies

Can't even start Torque on a few of our computers here.
Quite disappointing since 1.7.1 works perfectly.

Quote:
Not that many adapters

PlatformVideoInfo::getAdapterInformation(const unsigned int adapterIndex=0) Line 76
GFXD3D9CardProfiler::init() Line 36 + 0x12 bytes
GFXPCD3D9Device::init(const GFXVideoMode & mode={...}, PlatformWindow * window=0x02a4f9d8) Line 364

#1
12/17/2008 (3:27 pm)
Ok. Part of changing to GFX2 meant upgrading to a new DX9 card profiler. In your case, it seems that the WMI init blows and thus causes the profiler to not initialize properly.

To fix this (probably), change (in platformWin32/videoInfo/wmiVideoInfo.cpp)

bool WMIVideoInfo::_initialize()
{
   // Init COM
   HRESULT hr = CoInitialize( NULL );
   mComInitialized = SUCCEEDED( hr );

   if( !mComInitialized )
      return false;

   _initializeDXGI();
   _initializeDxDiag();

   return _initializeWMI();
}

to

bool WMIVideoInfo::_initialize()
{
   // Init COM
   HRESULT hr = CoInitialize( NULL );
   mComInitialized = SUCCEEDED( hr );

   if( !mComInitialized )
      return false;

   bool success = false;

   success |= _initializeDXGI();
   success |= _initializeDxDiag();
   success |= _initializeWMI();

   return success;
}
#2
12/17/2008 (3:32 pm)
Just out of curiosity: could you give some information about the system configs it is not running with?
#3
12/17/2008 (3:55 pm)
Sure, and sorry.

Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
2048 MB RAM
Nvidia GeForce 8800 GTX (768 MB)
Microsoft XP Professional 5.1
DirectX 9.0c (4.09.0000.0904)
Not the latest video drivers, however.

-----------------------------------

Tried your fix and it works, thank you!
#4
12/17/2008 (4:11 pm)
Ok, cool. Thanks for reporting, Stefan.

Unfortunately, I fear that quite a number of people will run into this issue. Shouldn't have trusted the WMI stuff in the first place.
#5
12/17/2008 (5:41 pm)
No clue what WMI is, what it does or why it's there, but I'm very glad I can play around with this stuff now :) Thanks again and I hope it was of some use.