在我的.NET 4.0的WPF应用程序中,用户报告了两个看似非常间歇性的错误,我无法掌握。下面,我将发布消息和堆栈跟踪的顶部行。如果需要,我可以发布完整的堆栈跟踪。
Message: {Desktop composition is disabled} The operation could not be completed because desktop composition is disabled. (Exception from HRESULT: 0x80263001)
StackTrace: at Standard.NativeMethods.DwmExtendFrameIntoClientArea(IntPtr hwnd, MARGINS& pMarInset)
Message: Insufficient memory to continue the execution of the program.
StackTrace: at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
谷歌提供的帮助并不是很有用,所以我希望你们之中可能见过这些。
DwmExtendFrameIntoClientArea
引起的,而这在标准的WPF窗口中并没有使用。 - dsfgsho