여기에 문제가 있습니다. 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를 전혀 설치하지 않았습니다. 전혀 영향이 없었습니다.
링크가 끊어진 것 같습니다. – Sheridan
힌트를 보내 주셔서 감사합니다. 링크를 수정했습니다. – bitbonk