Exception is thrown when the diagram model gets cleared

Hi,

I am using Essetial Studion 6.2.0.40. I get a NullReferenceException when I call Model.Clear() to clear the diagram. This is the trace:

System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
Source="Syncfusion.Diagram.Windows"
StackTrace:
at Syncfusion.Windows.Forms.Diagram.Controls.Diagram.UpdateView()
at Syncfusion.Windows.Forms.Diagram.Controller.Document_EndUpdate(Object sender, EventArgs e)
at Syncfusion.Windows.Forms.Diagram.DocumentEventSink.RaiseDocumentEndUpdate()
at Syncfusion.Windows.Forms.Diagram.Model.EndUpdate()
at Syncfusion.Windows.Forms.Diagram.Model.RemoveAllChildren()
at Syncfusion.Windows.Forms.Diagram.Model.Clear()


What I am trying to do is very simple. I have an application that has entities that get updated outside the diagram. A custom control built around the diagram receives change events from the application workspace and refreshes the diagram.

The diagram has symbols, it’s not empty. The strange thing is that even the exception doesn't occur all the times.

Could you please take a look at this and let me know whether there is a workaround or another approach I should use? I just want to clear the diagram, that’s all.

Thank you
Erion



2 Replies

AM Ajeet M Syncfusion Team January 27, 2009 04:22 AM UTC

Hi Erion,

As per the official policy, we will not be able to post certain detailed responses in public forums. We have noticed that you have an account in Direct Trac and you can use it to create a new incident, to which we could provide you the appropriate response.

Let me know if you shall need any further clarifications in this regard.

Regards,
Ajeet




EH Erion H. January 29, 2009 04:15 AM UTC

My appologies, I didn't know it. I will post it in the Direct Track.

thanks
e


>Hi Erion,

As per the official policy, we will not be able to post certain detailed responses in public forums. We have noticed that you have an account in Direct Trac and you can use it to create a new incident, to which we could provide you the appropriate response.

Let me know if you shall need any further clarifications in this regard.

Regards,
Ajeet





Loader.
Up arrow icon