Сбой приложения WPF после выхода пользователя из полноэкранного режима CMD - PullRequest
0 голосов
/ 15 июня 2009

Приложение WPF зависало после выхода пользователя из полноэкранного режима CMD. Я не имею ни малейшего представления, чтобы исправить это, вот исключение:


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)}

1 Ответ

1 голос
/ 15 июня 2009

Это было исправлено в .NET 3.5 с пакетом обновления 1 (SP1). Я считаю - убедитесь, что у вас есть все последние обновления и что-то установлено в Центре обновления Windows, связанное с .NET.

...