当我的应用程序退出时,我在调试器控制台中看到以下内容。
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的线程。如果有人能帮我找到造成这个错误的原因,我将不胜感激。
谢谢, 阿希奈。
答案 0 :(得分:1)
简短摘要:无需担心。
运行时库只是通知您线程正在退出。它是否与GDI +相关是未经证实的(因为它发生在你的app关闭序列中,当许多其他事情被杀死时)。这种类型的调试spew在visual studio调试器中很常见。
要考虑的事情:不要打扰叫GdiplusShutdown。当您的进程退出时,GDI +库分配的任何内存或资源都会被清理干净。