You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Windows远程桌面连接时触发OnRenderSurfaceBaseLoaded空引用异常

NullReferenceException in OnRenderSurfaceBaseLoaded when using SciChart via Windows Remote Desktop (v4.2.3 & v5.1.0)

I'm hitting a frustrating NullReferenceException in SciChart whenever I connect to my Windows 10 application using Remote Desktop, and I’m stuck figuring out how to fix it. Here’s a full breakdown of the situation:

  • Affected SciChart Versions: v4.2.3.10193 and v5.1.0.11299
  • Environment: Windows 10
  • Trigger: The exception is thrown immediately upon establishing a Remote Desktop connection to the machine running the app

Exception Stack Trace

Exception 1: Object reference not set to an instance of an object.
at SciChart.Drawing.DirectX.Context.D3D10.Direct3D10RenderSurface.OnRenderSurfaceBaseLoaded(Object sender, RoutedEventArgs e)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
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, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

What I’ve Tried So Far

  1. Disposing Render Surface: I attempted to resolve potential memory leaks from LinearGradientBrush in our CustomRenderableSeries by explicitly disposing the render surface with this code:
if(scs.GetValue(SciChartSurfaceBase.RenderSurfaceProperty) is IRenderSurface renderSurface) 
    renderSurface.Dispose();
  1. Checking Existing Solutions: I looked into a previously reported issue related to Direct3D null references, but the suggested fixes didn’t work for the v5.1.0.11299 version.

I’m at a loss for what to try next. Has anyone encountered this exact problem with SciChart over Remote Desktop, especially with the v5.x versions? Any workarounds or insights would be greatly appreciated.

内容的提问来源于stack exchange,提问作者Noah Y. Son

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 09:45:43