簡體   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