Horde3D
http://www.horde3d.org/forums/

Exception in GameSApiComponnentd.dll
http://www.horde3d.org/forums/viewtopic.php?f=6&t=1334
Page 1 of 1

Author:  VeTaL [ 04.12.2010, 16:49 ]
Post subject:  Exception in GameSApiComponnentd.dll

Greetings to community.

Just downloaded Gameengine and got first trouble:
While exiting DemoApp (it compiles okay) by pressing Escape, i got exception in this code:
Code:
TTSComponent::~TTSComponent()
{
   TTSManager::instance()->removeComponent(this);
   if (m_pVoice) m_pVoice->Release();
   CoUninitialize();
   delete m_getDistanceEvent;
}


Call stack:
Quote:
> GameSapiComponentd.dll!TTSComponent::~TTSComponent() Line 117 + 0x15 bytes C++
GameSapiComponentd.dll!TTSComponent::`scalar deleting destructor'() + 0x2b bytes C++
GameEngineCored.dll!GameEntityPrivate::~GameEntityPrivate() Line 55 + 0x2f bytes C++
GameEngineCored.dll!GameEntityPrivate::`scalar deleting destructor'() + 0x16 bytes C++
GameEngineCored.dll!GameEntity::~GameEntity() Line 130 + 0x1e bytes C++
GameEngineCored.dll!GameEntity::`scalar deleting destructor'() + 0x16 bytes C++
GameEngineCored.dll!GameWorldPrivate::~GameWorldPrivate() Line 62 + 0x29 bytes C++
GameEngineCored.dll!GameWorldPrivate::`scalar deleting destructor'() + 0x16 bytes C++
GameEngineCored.dll!GameWorld::~GameWorld() Line 119 + 0x1e bytes C++
GameEngineCored.dll!GameWorld::`scalar deleting destructor'() + 0x16 bytes C++
GameEngineCored.dll!GameModules::release() Line 38 + 0x1e bytes C++
GameEngineCored.dll!GameEngine::release() Line 78 C++
DemoAppd.exe!DemoApp::~DemoApp() Line 13 + 0x8 bytes C++
DemoAppd.exe!DemoApp::`scalar deleting destructor'() + 0x16 bytes C++
DemoAppd.exe!WinMain(HINSTANCE__ * hInstance=0x00000000, HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x0160740f, int nCmdShow=0) Line 76 + 0x1c bytes C++
DemoAppd.exe!main(int argc=2, char * * argv=0x016073c8) Line 85 + 0x12 bytes C++
DemoAppd.exe!__tmainCRTStartup() Line 586 + 0x19 bytes C
DemoAppd.exe!mainCRTStartup() Line 403 C
kernel32.dll!7c817067()
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
Luad.dll!_strcoll_l(const char * _string1=0x00000000, const char * _string2=0x413f2e00, localeinfo_struct * plocinfo=0x676f6c56) Line 58 + 0x27 bytes C++
6e788400()



While debugging, i noted that destructor calls two times: first time its okay, but second time i caught exception.

Also, i tried this:
Code:
if (m_pVoice)
   {
      m_pVoice->Release();
      m_pVoice = NULL;
   }

but when this function called second time, m_pVoice isnt NULL and exception raised on m_pVoice->Release();.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/