简体   繁体   English

Gdiplusshutdown导致退出代码1

[英]Gdiplusshutdown results in exit code 1

when my app is exited i see the following in the debugger console. 当我的应用程序退出时,我在调试器控制台中看到以下内容。

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).

I traced the thread exiting with exit code 1 to a call to Gdiplus::GdiplusShutdown(gdiplusToken); 我跟踪退出代码为1的线程到对Gdiplus::GdiplusShutdown(gdiplusToken);的调用Gdiplus::GdiplusShutdown(gdiplusToken); in the destructor of my app. 在我的应用程序的析构函数中。 I am not really sure why this call is resulting in a thread with exit code 1. I would appreciate if anyone can help me find what is causing this error. 我不太确定为什么此调用会导致退出代码为1的线程。如果有人可以帮助我找到导致此错误的原因,我将不胜感激。

Thanks, Abhinay. 谢谢,Abhinay。

Short summary: Nothing to be concerned about. 简短摘要:无需担心。

The runtime library is just notifying you that threads are exiting. 运行时库只是通知您线程正在退出。 Whether or not its related to GDI+ is unproven (since its happening in your app shutdown sequence when lots of other things are getting killed). 它与GDI +的相关性是否有待验证(因为它在您关闭许多其他事件时会在您的应用关闭顺序中发生)。 This type of debug spew is common to see in the visual studio debugger. 在Visual Studio调试器中通常会看到这种调试状态。

Something to consider: don't bother calling GdiplusShutdown. 需要考虑的事情:不要打扰GdiplusShutdown。 When your process exits, any memory or resources allocated by the GDI+ library will get cleaned up anyway. 当您的进程退出时,GDI +库分配的所有内存或资源都将被清除。

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

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