2010-10-28 163 views
1

當我的應用程序退出時,我在調試器控制檯中看到以下內容。Gdiplusshutdown導致退出代碼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); 在我的應用程序的析構函數。我不確定爲什麼這個調用會導致一個退出代碼爲1的線程。如果有人能幫我找到導致這個錯誤的原因,我將不勝感激。

謝謝, Abhinay。

回答

1

簡要概要:沒什麼可關注的。

運行時庫只是通知您線程正在退出。它與GDI +相關是否未經證實(因爲它發生在你的應用程序關閉序列中,當許多其他事情正在死亡)。這種類型的調試流程在Visual Studio調試器中很常見。

需要考慮的事情:不要打擾調用GdiplusShutdown。當你的進程退出時,GDI +庫分配的任何內存或資源都將被清理乾淨。

+0

謝謝selbie。我在某處讀過它不應該影響程序執行,但是想確保我不會錯過任何東西。 :-) – 2010-10-29 13:39:29