繁体   English   中英

Gdiplusshutdown导致退出代码1

[英]Gdiplusshutdown results in exit code 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);的调用Gdiplus::GdiplusShutdown(gdiplusToken); 在我的应用程序的析构函数中。 我不太确定为什么此调用会导致退出代码为1的线程。如果有人可以帮助我找到导致此错误的原因,我将不胜感激。

谢谢,Abhinay。

简短摘要:无需担心。

运行时库只是通知您线程正在退出。 它与GDI +的相关性是否有待验证(因为它在您关闭许多其他事件时会在您的应用关闭顺序中发生)。 在Visual Studio调试器中通常会看到这种调试状态。

需要考虑的事情:不要打扰GdiplusShutdown。 当您的进程退出时,GDI +库分配的所有内存或资源都将被清除。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM