We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Object Ref errors

Thread ID:





101932 Dec 6,2011 12:34 PM UTC Dec 8,2011 03:34 AM UTC WPF 1
Tags: Diagram
James Foster
Asked On December 6, 2011 12:34 PM UTC

With the latest release, we are seeing new random Object Ref errors coming out of the Syncfusion code. We have the control on a tab, and these errors occur when users are on another tab doing routine operations like clicking on dropdown lists, radio buttons, buttons, etc in non-Syncfusion code.

Looking at the stack trace, these errors come straight out of Syncfusion code. Any idea?

Here is the exception:

Object reference not set to an instance of an object.

Stack Trace:

at Syncfusion.Windows.Diagram.LineConnector.getNodeRect(Node n)
at Syncfusion.Windows.Diagram.LineConnector.UpdateConnectorPathGeometry()
at Syncfusion.Windows.Diagram.LineConnector.Line_PropertyChanged(Object sender, PropertyChangedEventArgs e)
at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
at Syncfusion.Windows.Diagram.Node.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at Syncfusion.Windows.Diagram.Node.set_Position(Point value)
at Syncfusion.Windows.Diagram.Node.set_PxPosition(Point value)
at Syncfusion.Windows.Diagram.Node.Node_LayoutUpdated(Object sender, EventArgs e)
at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
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.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage 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, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Target Site:



System.Windows.Rect getNodeRect(Syncfusion.Windows.Diagram.Node)



Ramya Thirugnanam [Syncfusion]
Replied On December 8, 2011 03:34 AM UTC

Hi James,

We are unable to reproduce the reported issue ”Object reference not set to an instance of an object” in But with the help of the given stack trace we are able to see there are some possibilities to causes this exceptions. We will provide a patch for this fix on December 12th 2011.

In getNodeRect function, There is no such a possibility that the Node(argument ) to be ‘null’, but there are chances that internal variable dc (DiagramControl) to be null.
We tried to reproduce this issue in many scenario by hosting diagram in tabcontrol, but still we are not able to reproduce this issue. We can fix this issue by null value check, but the root cause of the issue is still unknown. It would be the great help for us, if you provide a more details about the scenario to reproduce this issue.

Please let us know if you have any concerns.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon