2014-06-11 20 views
2

當一個WPF應用程序closuing一個閃屏,我收到以下錯誤:一個的SafeHandle或類型的CriticalHandle「BitmapHandle」未能正確與價值釋放手柄

Message: A SafeHandle or CriticalHandle of type 'BitmapHandle' failed to properly release the handle with value 0xD0052B9B. This usually indicates that the handle was released incorrectly via another means (such as extracting the handle using DangerousGetHandle and closing it directly or building another SafeHandle around it.) 
ReleaseHandleFailed was detected 
+0

相關:http://msdn.microsoft.com/en-us/library/85eak4a0(v=vs.110).aspx – GibboK

回答

2

這個問題似乎在框架中的錯誤如本頁所述。

http://connect.microsoft.com/VisualStudio/feedback/details/720719/releasehandlefailed-thrown-by-mda-when-using-the-splash-screen-feature-of-wpf

我收到此異常在調試模式下,其調試/異常時,啓用「ALL」在2010年VS

爲了擺脫這種例外,我不得不重置爲默認的調試中在2010年VS

+0

404返回該網址上的代碼「找不到頁面」 – stephenbayer

+0

@stephenbayer url現在看起來不錯 – GibboK

1

/例外,我不得不下託管調試助手禁止在調試ReleaseHandleFailed異常 - >異常來擺脫掉的編譯器警告。