2009-06-22 5 views
2

J'ai une application WPF qui ne parvient pas à sortir du mode de veille temporisé, suivie de la mise en veille prolongée. Le thread de rendu semble échouer lors de l'initialisation. J'ai essayé de supprimer l'accélération matérielle pour vérifier que ce n'est pas lié à la carte graphique, mais cela n'a pas aidé.Une application WPF échoue lors de la sortie du mode Mise en veille prolongée

est ici une exception avec le stacktrace:

ERREUR Une erreur non spécifiée est survenue sur le fil de rendu. trace Stack: à System.Windows.Media.MediaContext.NotifyPartitionIsZombie (Int32 failureCode) à System.Windows.Media.MediaContext.NotifyChannelMessage() à System.Windows.Interop.HwndTarget.HandleMessage (Int32 msg, IntPtr wparam, IntPtr lparam) à System.Windows.Interop.HwndSource.HwndTargetFilterMessage (hwnd IntPtr, Int32 msg, IntPtr wParam, lParam IntPtr, Boolean & traitées) à MS.Win32.HwndWrapper.WndProc (hwnd IntPtr, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean & traitées) à MS.Win32.HwndSubclass.DispatcherCallbackOperation (Object o) à System.Windows.Threading.ExceptionWrapper.InternalRealCall (callback délégué, objet args, booléen isSingleParameter) à System.Wind ows.Threading.ExceptionWrapper.TryCatchWhen (source d'objet, rappel de délégué, arguments d'objet, boolean isSingleParameter, délégué catchHandler) à System.Windows.Threading.Dispatcher.WrappedInvoke (rappel de délégué, arguments d'objet, boolean isSingleParameter, délégué catchHandler) au système .Windows.Threading.Dispatcher.InvokeImpl (priorité DispatcherPriority, TimeSpan timeout, méthode Delegate, Object arguments, Boolean isSingleParameter) at System.Windows.Threading.Dispatcher.Invoke (priorité DispatcherPriority, méthode Delegate, objet Arg) at MS.Win32 .HwndSubclass.SubclassWndProc (hwnd IntPtr, Int32 msg, IntPtr wParam, lParam IntPtr) à MS.Win32.UnsafeNativeMethods.DispatchMessage (MSG & msg) à System.Windows.Threading.Dispatcher.PushFrameImpl (structure DispatcherFrame) à System.Windows.Threading.Dispatcher.PushFrame (cadre de DispatcherFrame) à System.Windows.Threading.Dispatcher.Run() à System.Windows.Application.RunDispatcher (Object ignorer) à System.Windows.Application.RunInternal (fenêtre de fenêtre) à System.Windows.Application.Run (fenêtre de fenêtre) à System.Windows.Application.Run()

Je googlé autour, et les gens suggèrent qu'il pourrait avoir quelque chose à voir avec la propriété AllowsTransparency étant mis à vrai; Cependant, je n'ai pas vu ce problème lors de l'exécution d'une application de test simple.

Toutes les idées concernant l'exception et les causes/solutions possibles sont très appréciées.

Répondre

2

Essayez ceci:

967634 CORRECTIF: vous pouvez rencontrer plusieurs problèmes lorsque vous restituez graphiques à l'aide de Windows Presentation Foundation (WPF) dans une application 967634

Note: Malheureusement, vous aurez probablement à appel. Cependant, il est gratuit, même si elles vous font payer au début, va remboursera votre argent si tout ce que vous faites est de leur demander la solution.

+0

merci beaucoup, que vient de faire le tour, je a également été en mesure de trouver le téléchargement sans appeler: http://thehotfixshare.net/board/index.php?s=a11a52806667765ef890c84e8f5dff3a&autocom=downloads&req=download&code=confirm_download&id= 10673 – Lenik

Questions connexes