2010-10-28 165 views
1

当我的应用程序退出时,我在调试器控制台中看到以下内容。Gdiplusshutdown导致退出代码1

The thread '_threadstartex' (0xd48) has exited with code 0 (0x0). 
The thread '_threadstartex' (0xf80) has exited with code 0 (0x0). 
The thread '_threadstartex' (0x190) has exited with code 0 (0x0). 
The thread '_threadstartex' (0xaa0) has exited with code 0 (0x0). 
The thread '_threadstartex' (0x67c) has exited with code 0 (0x0). 
The thread '_threadstartex' (0x6f0) has exited with code 0 (0x0). 
The thread '_threadstartex' (0x9e4) has exited with code 0 (0x0). 
The thread '_threadstartex' (0xf04) has exited with code 0 (0x0). 
The thread 'Win64 Thread' (0xbcc) has exited with code 0 (0x0). 
The thread 'Win64 Thread' (0xe08) has exited with code 1 (0x1). 
The thread 'Win64 Thread' (0x9a4) has exited with code 0 (0x0). 
The thread 'Win64 Thread' (0x3a0) has exited with code 0 (0x0). 
'BFX_App.exe': Unloaded 'C:\Windows\System32\msxml6.dll' 
'BFX_App.exe': Unloaded 'C:\Windows\System32\WindowsCodecsExt.dll' 
The program '[2148] BFX_App.exe: Native' has exited with code 0 (0x0). 

我跟踪的线程退出码1退出到调用Gdiplus::GdiplusShutdown(gdiplusToken); 在我的应用程序的析构函数。我不确定为什么这个调用会导致一个退出代码为1的线程。如果有人能帮我找到导致这个错误的原因,我将不胜感激。

谢谢, Abhinay。

回答

1

简要概要:没什么可关注的。

运行时库只是通知您线程正在退出。它与GDI +相关是否未经证实(因为它发生在你的应用程序关闭序列中,当许多其他事情正在死亡)。这种类型的调试流程在Visual Studio调试器中很常见。

需要考虑的事情:不要打扰调用GdiplusShutdown。当你的进程退出时,GDI +库分配的任何内存或资源都将被清理干净。

+0

谢谢selbie。我在某处读过它不应该影响程序执行,但是想确保我不会错过任何东西。 :-) – 2010-10-29 13:39:29