Skip to main content
GameDev.net gamedev.net
🔒 Locked

Extra thread when shutting down

Started by Lotan Sep 2, 2000 at 12:37 PM 0 replies 550+ views
Original Post
Lotan
Lotan
Whenever I write DirectX apps, I get an extra thread that: 1. If I shut down the program quickly after starting the thread exits with code -1. 2. If I wait for about 5 seconds or so, the game will pause for a split second(The thread exiting I''m assuming), and then the thread will exit with 0. Also, while using DirectPlay I seem to be getting a rogue thread that exits with -1 no matter what I do... Even if this is all of my code: void DPlay::Init(GUID appGuid) { m_appGuid = appGuid; CoInitialize(NULL); TEST(CoCreateInstance(CLSID_DirectPlay, NULL, CLSCTX_ALL, IID_IDirectPlay4A, (void**)&m_pDirectPlay)); } void DPlay::Release() { m_pDirectPlay->Release(); CoUninitialize(); } Any help would be greatly appreciated
Lotan
Lotan
Has anybody else even experienced this? Any help is greatly appreciated

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.