AB4D Forum

Full Version: System.NullReferenceException
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
the 3ds file is big (50M+)
ModelSceneCamera.TargetViewport3D = MainViewport3D;

show error:
System.NullReferenceException: 未将对象引用设置到对象的实例。

at Ab3d.Cameras.BaseCamera.Ӷ()

at Ab3d.Cameras.BaseCamera.RefreshCurrentCamera()

at Ab3d.Cameras.BaseCamera.OnCameraLoaded()

at Ab3d.Cameras.BaseCamera.Ӳ(Object Ӱ, RoutedEventArgs ӱ)

at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)

at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)

at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)

at MS.Internal.LoadedOrUnloadedOperation.DoWork()

at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()

at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()

at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)

at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)

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)