在WPF应用程序中关闭SplashScreen时,收到以下错误:
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 :(得分:2)
这个问题似乎是本页提到的框架上的一个错误。
我在调试模式下收到此异常,当有Debug / Exception" ALL"在VS 2010中启用。
为了摆脱这种异常,我不得不在VS 2010中重置为默认的Debug / Exception。
答案 1 :(得分:2)
我必须在 Debug - >中的托管调试助手下禁用ReleaseHandleFailed异常。例外摆脱编译器警告。