【发布时间】:2013-03-06 23:29:11
【问题描述】:
我的应用程序中出现此异常。 我在网上找到了讨论它的链接,但没有说明如何追踪它和/或解决它。
请不要回复来自互联网的链接。 请回复追踪来源的策略。 如果您找到了解决方法,请回复。
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)
【问题讨论】:
-
我认为这篇文章可能会有所帮助,接受的答案包含调试此问题的策略列表。 stackoverflow.com/questions/1944577/win32-window-in-wpf
-
有一个非常好的 MSDN 博客深入描述了这个问题。简短的回答是没有单一的原因:blogs.msdn.microsoft.com/dsui_team/2013/11/18/…。