C# 用户退出CMD全屏模式后,WPF应用程序崩溃
用户退出CMD全屏模式后,WPF应用程序崩溃。 我不知道如何修复它,这里有一个例外:C# 用户退出CMD全屏模式后,WPF应用程序崩溃,c#,wpf,windows-xp,cmd,C#,Wpf,Windows Xp,Cmd,用户退出CMD全屏模式后,WPF应用程序崩溃。 我不知道如何修复它,这里有一个例外: e.Exception {"An unspecified error occurred on the render thread."} [System.InvalidOperationException]: {"An unspecified error occurred on the render thread."} _className: null _data: {System.Co
e.Exception
{"An unspecified error occurred on the render thread."}
[System.InvalidOperationException]: {"An unspecified error occurred on the render thread."}
_className: null
_data: {System.Collections.ListDictionaryInternal}
_dynamicMethods: null
_exceptionMethod: null
_exceptionMethodString: null
_helpURL: null
_HResult: -2146233079
_innerException: null
_message: "An unspecified error occurred on the render thread."
_remoteStackIndex: 0
_remoteStackTraceString: null
_source: "PresentationCore"
_stackTrace: {sbyte[192]}
_stackTraceString: null
_xcode: -532459699
_xptrs: 0
Data: {System.Collections.ListDictionaryInternal}
HelpLink: null
HResult: -2146233079
InnerException: null
IsTransient: false
Message: "An unspecified error occurred on the render thread."
Source: "PresentationCore"
StackTrace: "
at System.Windows.Media.MediaContext.NotifyPartitionIsZombie(Int32 failureCode)\r\n
at System.Windows.Media.MediaContext.NotifyChannelMessage()\r\n
at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg, IntPtr wparam, IntPtr lparam)\r\n
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)\r\n
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)\r\n
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)\r\n at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)\r\n
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)"
TargetSite: {Void NotifyPartitionIsZombie(Int32)}
我相信这是在.NET 3.5 SP1中修复的-请确保您拥有所有最新的更新,并在Windows Update中安装与.NET相关的任何内容。您能为我们提供足够的源来重新创建此问题吗?如果您这样做,我们可以更好地帮助您。很抱歉,我无法提供所有应用程序源代码,并且我不知道是哪些代码导致了此问题…感谢您的回复。我们的机器已经安装了.NET3.5SP1。我们不会检查所有与.NET相关的更新,您知道哪个更新会解决此问题吗?