我在我的应用程序中遇到了这个异常。 我发现在网络上讨论它的链接,但没有说明如何跟踪它和/或解决它。0x88980406 SyncFlush()...是否有解决方法?
请不要回复来自互联网的链接。 请回复跟踪来源的策略。 如果您发现它们,请使用解决方法回复。
Source: PresentationCore
Message: Exception from HRESULT: 0x88980406
Stack Trace:
at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable`1 channelSet)
at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
我认为这篇文章可以帮助,接受的答案包含调试此问题的策略列表。 http://stackoverflow.com/questions/1944577/win32-window-in-wpf – invalidusername 2013-03-18 15:39:16
有一个很好的MSDN博客深入描述这个问题。简单的答案是没有单一原因:https://blogs.msdn.microsoft.com/dsui_team/2013/11/18/wpf-render-thread-failures/。 – 2016-05-18 08:48:52