在我的 .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()
谷歌并不是很有帮助,所以我希望你们以前见过他们。