CreateDXGIFactory Doesn't Let Program Exit
Posted
by
smoth190
on Game Development
See other posts from Game Development
or by smoth190
Published on 2012-04-01T17:28:20Z
Indexed on
2012/04/01
17:43 UTC
Read the original article
Hit count: 194
directx11
I'm using CreateDXGIFactory to get the graphics adapters and display modes. When I call it, it works fine and I get all the data. However, when I exit my program, the main Win32 thread exits, but something stays open because it keeps debugging. Does CreateDXGIFactory create an extra thread and I'm not closing it? I don't understand. The only thing I would suspect is that in the documentation it says it doesn't work if it's called from DllMain. It is in a DLL, but it's not called from DllMain. And it doesn't fail, either.
I'm using DirectX 11.
© Game Development or respective owner