2010-04-09 12 views
5

여기에 문제가 있습니다. thriple 의 ContentControl3D 객체가 있습니다.이 라이브러리는 LibraryStack이 만들어지고 채워지는 함수를 실행할 때까지 잘 실행되는 이미지가있는 LibraryStack을 만듭니다. 나는 다음과 같은 오류를 얻을 내부의 객체 중 하나를 클릭하면 스택 트레이스와렌더링 스레드에서 알 수없는 오류가 발생했습니다. (NotifyPartitionIsZombie)

An unspecified error occurred on the render thread. 

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

여기에 추가하고 LibraryStack를 만들고 있기 때문에 그것을

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

을 채우는 코드는 그것은 NotifyPartitionIsZombie 오류가 있습니다. 나는 이미 Windows Update KB967634를 전혀 설치하지 않았습니다. 전혀 영향이 없었습니다.

답변

1

나는이 예외가 싫다! 나는 그것을 조사 중이며 내가 찾은 것을 올릴 것이라고 생각했다.

  • 그래픽 카드 드라이버가 최신 버전입니까?
  • 나는 또한 스눕을 사용하여 개체 중 하나를 검사하고 NAN 인 높이, 너비 또는 위치를 확인합니다.
  • Window.AllowsTransparency Property 마이크로 소프트가 조사하는 데 도움이 할 수있는 WinDbg는 메모리 덤프를 주장 msdn에 대한 게시물이 있습니다

거짓 확인합니다.

여기에 도움이되기를 바랍니다.

0

나는 이것이 오래된 스레드라는 것을 알고 있지만, 주목할만한 일부 PC에서는 여전히 예외가 발생합니다.

그래픽 드라이버를 최신 상태로 유지하는 것 외에도 하드웨어 가속을 최소 레벨 (특히 Matrox 카드 사용)으로 변경했을 때 그래픽 드라이버가 최신 버전인지 확인하는 데 도움이되었습니다. (Win7에에)

: 마우스 오른쪽 버튼으로 클릭> 개인 설정> 디스플레이> 디스플레이 설정 변경> 고급 설정> 문제 해결> 설정을 변경 내가 다윗에 동의

그리고이 발생할 수있는 무서운 예외입니다!

1

Here에 대한 자세한 설명입니다.이 오류에 대한 자세한 설명과 해결 방법에 대해 설명합니다.

+0

링크가 끊어진 것 같습니다. – Sheridan

+0

힌트를 보내 주셔서 감사합니다. 링크를 수정했습니다. – bitbonk

관련 문제