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

diagram in controlnode

Thread ID:

Created:

Updated:

Platform:

Replies:

102286 Jan 18,2012 08:40 AM UTC Jan 25,2012 05:34 AM UTC WinForms 2
loading
Tags: Diagram
Raul Rosenthal
Asked On January 18, 2012 08:40 AM UTC

I'm trying to use the Diagram control to implement a workflow diagram (similar to .net's Workflow Foundation designer).

So I need nested diagrams, i.e. to put a diagram in a node.
I modified the ControlsGalore sample, simply adding a DiagramNode.

When run, the sample displays the nested diagram as expected, but as soon as I click on the diagram node, the application crashes with a null pointer reference, leaving the debugger in the Main() method.

I have no clue to what I should be looking for to find this null reference.

Is putting a diagram in a ControlNode even supported?
Is there some setting that I am not aware of?

Thank you.
Regards,
Raul


Raul Rosenthal
Replied On January 18, 2012 03:47 PM UTC

After much tinkering to make debugging SF source work (for same reason the Build Manager says it has compiled everything just in a split second, but it seems that it does nothing), I think i tracked down the problem to this:

In file c:\...\Essential Studio\9.4.0.62\Base\Diagram.Base\Src\MVC\Model.cs, at line 287, i.e.

m_headerFooter = (HeaderFooterData)src.m_headerFooter.Clone();

there is a reference to the uninitialized member var m_headerFooter.

This member is initialized via a lazy init here:
public HeaderFooterData HeaderFooterData
{
get
{
if (this.m_headerFooter == null)
this.m_headerFooter = this.CreateHeaderFooter();

return this.m_headerFooter;
}
}

So, if property HeaderFooterData is never called, it stays null.

I worked around the problem by simply adding a statement like
//object x = m.HeaderFooterData;
to my appl.

Could you please confirm the problem, and if I got it right, provide a fix?

[I'm posting this request in Direct Track too]

Thanks
Regards,
Raul Rosenthal



Amsath Ali M [Syncfusion]
Replied On January 25, 2012 05:34 AM UTC

Hi Raul,

Thanks for your interest in Syncfusion products.

Since you have created a separate Direct-Trac incident [89828] for your query, please refer that incident for better follow up. Please let us know if you have any queries.

Regards,
Amsath Ali. M



CONFIRMATION

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.

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

;