2010-04-09 17 views
5

OK aquí está el problema, Tengo un objeto ContentControl3D desde thriple en el que estoy creando una LibraryStack con imágenes se ejecuta bien, hasta que ejecute la función donde se crea y completa el LibraryStack. cuando hago clic en cualquiera de los objetos en el interior me sale el siguiente errorSe produjo un error no especificado en el subproceso de representación. (NotifyPartitionIsZombie)

An unspecified error occurred on the render thread. 

con StackTrace

at System.Windows.Media.MediaContext.NotifyPartitionIsZombie(Int32 failureCode) 
at System.Windows.Media.MediaContext.NotifyChannelMessage() 
at System.Windows.Interop.HwndTarget.HandleMessage(Int32 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, Boolean isSingleParameter) 
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) 
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) 
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter) 
at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg) 
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) 
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) 
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) 
at System.Windows.Threading.Dispatcher.Run() 
at System.Windows.Application.RunDispatcher(Object ignore) 
at System.Windows.Application.RunInternal(Window window) 
at System.Windows.Application.Run(Window window) 
at System.Windows.Application.Run() 
at WelkoMap.App.Main() in F:\MediaGarde\Surface\Development\WelkoMap\WelkoMap\obj\Debug\App.g.cs:line 0 
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) 
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) 
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() 
at System.Threading.ThreadHelper.ThreadStart_Context(Object state) 
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 
at System.Threading.ThreadHelper.ThreadStart() 

aquí está el código que agrega y crea la LibraryStack y lo llena

public void ReplaceBackContent(List<Image> images, List<MediaElement> videos) 
{ 
    ContentControl3D control = this.TryFindParent<ContentControl3D>(); 
    if (control == null) 
    { 
     return; 
    } 
    LibraryStack stack = new LibraryStack(); 

    foreach (Image image in images) 
    { 
     if (image.Parent != null) 
     { 
      continue; 
     } 
     LibraryStackItem item = new LibraryStackItem(); 
     item.Content = image; 
     stack.Items.Add(item); 

    } 
    control.BackContent = stack; 
} 

Desde tiene el error NotifyPartitionIsZombie ya instalé la actualización de Windows KB967634 que no tuvo ningún efecto en absoluto

Respuesta

1

¡Odio esta excepción! Lo estoy investigando también y pensé en publicar lo que encontré.

  • ¿Están sus controladores de tarjetas gráficas actualizados?
  • También usaría fisura e inspeccionaría uno de los objetos y verificaría alturas, anchuras o posiciones que son NAN.
  • Asegúrese Window.AllowsTransparency Property es falso

Hay un post en msdn que reclama un volcado de memoria WinDBG puede ayudar a Microsoft a investigar.

Espero que algo aquí ayude.

0

Sé que este es un hilo antiguo, pero la excepción todavía se arrastra en algunas PC que he notado.

Además de asegurarme de que los controladores de gráficos estén actualizados, también me ayudó cuando cambié la aceleración de hardware a un nivel mínimo (específicamente con tarjetas Matrox).

(en Windows 7): haga clic en> Personalizar> Pantalla> Configuración de pantalla cambian la configuración avanzada>>> cambiar la configuración solucionar problemas

Y estoy de acuerdo con David, se trata de una excepción horrible para encontrar!

1

Here es una explicación detallada de este error y de lo que puede hacer al respecto.

+0

Parece que su enlace ahora está roto. – Sheridan

+0

Gracias por la pista, he corregido el enlace. – bitbonk

Cuestiones relacionadas