gpt4 book ai didi

c++ - Gdiplusshutdown 导致退出代码 1

转载 作者:太空宇宙 更新时间:2023-11-04 12:22:48 25 4
gpt4 key购买 nike

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

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 的线程。如果有人能帮助我找到导致此错误的原因,我将不胜感激。

谢谢,艾比奈。

最佳答案

简短摘要:无需担心。

运行时库只是通知您线程正在退出。它是否与 GDI+ 相关尚未得到证实(因为它发生在您的应用程序关闭序列中,当许多其他东西被杀死时)。这种类型的调试涌现在 visual studio 调试器中很常见。

需要考虑的事项:不要费心调用 GdiplusShutdown。当您的进程退出时,GDI+ 库分配的任何内存或资源都将被清除。

关于c++ - Gdiplusshutdown 导致退出代码 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4047652/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com