OutOfMemoryException 在 System.Windows.Media.Composition.DUCE.Channel.CreateOrAddRefOnChannel(Object instance, ResourceHandle& handle, ResourceType resourceType) 在 System.Windows.Media.CompositionTarget.CreateUCEResources(Channel channel, Channel outOfBandChannel) 在 System.Windows.Interop.HwndTarget.CreateUCEResources(Channel channel, Channel outOfBandChannel) 在 System.Windows.Media.MediaContext.RegisterICompositionTargetInternal(ICompositionTarget iv) 在 System.Windows.Interop.HwndTarget..ctor(IntPtr hwnd) 在 System.Windows.Interop.HwndSource.Initialize(HwndSourceParameters parameters) 在 System.Windows.Window.CreateSourceWindow(Boolean duringShow) 在 System.Windows.Window.ShowHelper(Object booleanBox) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)