一个类型为'BitmapHandle'的SafeHandle或CriticalHandle未能正确释放值为的句柄。

3
关闭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

相关链接:http://msdn.microsoft.com/zh-cn/library/85eak4a0(v=vs.110).aspx - GibboK
2个回答

2

我必须在调试 -> 异常下的托管调试助手中禁用ReleaseHandleFailed异常,以消除编译器警告。


2

@stephenbayer 的 URL 现在看起来没问题了。 - GibboK

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接