Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) "the structure of this object has changed" Error when loading digram with visionodes (Read 1447 times)
G_G
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 16
Joined: Dec 8th, 2021
"the structure of this object has changed" Error when loading digram with visionodes
May 6th, 2024 at 6:06am
Print Post  
Hi, we are trying to build an vb.net winforms application that imports visio objects from a stencil and uses them in a diagram.

So far we made everything work, but when we save the diagram to a string and then try to load it again we get the "the structure of this object has changed" Error and the application opens with a blank diagram(Console output is: Exception thrown: 'System.InvalidOperationException' in MindFusion.Diagramming).

it works for some visio objects but with most of them it fails.

Edit: Visio Stencil added
« Last Edit: May 6th, 2024 at 7:48am by G_G »  

VB_Visio_Stencil3.zip ( 66 KB | 123 Downloads )
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3248
Joined: Oct 19th, 2005
Re: "the structure of this object has changed" Error when loading digram with visionodes
Reply #1 - May 6th, 2024 at 7:09am
Print Post  
Hi,

Please attach the stencil file.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3248
Joined: Oct 19th, 2005
Re: "the structure of this object has changed" Error when loading digram with visionodes
Reply #2 - May 6th, 2024 at 4:27pm
Print Post  
We could not reproduce that. Please let us know what we should change in attached project to see exceptions.

Regards,
Slavcho
Mindfusion
  

VisioStencils.zip ( 79 KB | 100 Downloads )
Back to top
 
IP Logged
 
G_G
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 16
Joined: Dec 8th, 2021
Re: "the structure of this object has changed" Error when loading digram with visionodes
Reply #3 - May 7th, 2024 at 5:40am
Print Post  
Hi, thank for taking time to help with this issue.
Our Project is in vb.net and we save and load to string (no xml).
also, we are limited to .net 4.8.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3248
Joined: Oct 19th, 2005
Re: "the structure of this object has changed" Error when loading digram with visionodes
Reply #4 - May 7th, 2024 at 10:10am
Print Post  
Attached VB version; let us know what we should change to see exceptions.

Regards,
Slavcho
Mindfusion
  

VisioStencils_001.zip ( 85 KB | 56 Downloads )
Back to top
 
IP Logged
 
G_G
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 16
Joined: Dec 8th, 2021
Re: "the structure of this object has changed" Error when loading digram with visionodes
Reply #5 - May 8th, 2024 at 8:38am
Print Post  
Thank you for the example code, so far i was unable to reproduce the error with your project.
I have however extracted more error code from our codebase:
---------------------------

---------------------------
The structure of this object has changed. MindFusion.Vsx    bei MindFusion.Vsx.Shape`2.c0c3be32e8d6220f759f0595fb79a3ceb(BinaryReader cc284babc9f08b4a49bd87e797d1c8e60, Int32 cd270b126549264eacc8fe0522c03d829)

   bei MindFusion.Vsx.Shape`2.c0c3be32e8d6220f759f0595fb79a3ceb(BinaryReader cc284babc9f08b4a49bd87e797d1c8e60, Int32 cd270b126549264eacc8fe0522c03d829)

   bei MindFusion.Vsx.Master`2.LoadLocalState(BinaryReader reader)

   bei MindFusion.Diagramming.VisioContent.c0c3be32e8d6220f759f0595fb79a3ceb(Byte[] c4447640fd522cdbd29e11c9e97000b7d)

   bei MindFusion.Diagramming.XmlPersistContext.ReadVisioContent(String elementName, XmlElement parentElement)

   bei MindFusion.Diagramming.VisioNode.LoadFromXml(XmlElement xmlElement, XmlPersistContext context)

   bei MindFusion.Diagramming.XmlPersistContext.cfb09513011a287fbaf6a6739b16224fb(XmlEl
ement cb7c2bb33bc36df8c387ed980540d6425)

   bei MindFusion.Diagramming.Diagram.c9764eecf3310a6320e41c41a41990792(XmlDocument c9f5cb56910127035d856e4981e1b617f, XmlElement c9f2dcaef690de8cd65ecdcbb5bb60cc0, Boolean cdf868fb3a0e3338e71e9fc6cd6f4365d)

   bei MindFusion.Diagramming.Diagram.LoadFromXml(XmlDocument document, Boolean loadDiagramProperties)

   bei MindFusion.Diagramming.Diagram.LoadFromXml(XmlDocument document)

   bei MindFusion.Diagramming.Diagram.LoadFromString(String str)

   bei FsInput.Visualizer.Form1_Load(Object sender, EventArgs e) in C:\Users\ghg\source\repos\FSInput\Source\FsInput\FS3\Visualizer\Visualizer.vb:Ze
ile 135.
---------------------------
OK   
---------------------------

The code for saving and loading isn't any different from our code to yours, yet we get these error messages with ours.
We use Tags to include Informations in our nodes, which works fine for shapenodes, might this be a problem in the visionodes?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3248
Joined: Oct 19th, 2005
Re: "the structure of this object has changed" Error when loading digram with visionodes
Reply #6 - May 8th, 2024 at 12:42pm
Print Post  
Please attach the XML string with which you get that exception.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3248
Joined: Oct 19th, 2005
Re: "the structure of this object has changed" Error when loading digram with visionodes
Reply #7 - May 8th, 2024 at 3:39pm
Print Post  
What version of the control are you using? We've reviewed vsx.dll git commits and found stencil serialization fixes from last year. If you are on older version, please try current 7.0.2.
  
Back to top
 
IP Logged
 
G_G
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 16
Joined: Dec 8th, 2021
Re: "the structure of this object has changed" Error when loading digram with visionodes
Reply #8 - May 8th, 2024 at 6:41pm
Print Post  
Hmm, i think we already use the most current one
  

Screenshot_1_001.png ( 92 KB | 31 Downloads )
Screenshot_1_001.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3248
Joined: Oct 19th, 2005
Re: "the structure of this object has changed" Error when loading digram with visionodes
Reply #9 - May 9th, 2024 at 8:05am
Print Post  
Please try version 7.0.2. The stencil fix we see is from October, so after 7.0.0 release.
  
Back to top
 
IP Logged
 
G_G
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 16
Joined: Dec 8th, 2021
Re: "the structure of this object has changed" Error when loading digram with visionodes
Reply #10 - May 9th, 2024 at 9:06am
Print Post  
i downloaded the files from the website seen in the screenshot and took the dll's from C:\Program Files (x86)\MindFusion\MindFusion.Diagramming for WinForms\DotNet4

shouldn't those be the files i need?
  

Screenshot_1_002.png ( 36 KB | 39 Downloads )
Screenshot_1_002.png
Back to top
 
IP Logged
 
G_G
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 16
Joined: Dec 8th, 2021
Re: "the structure of this object has changed" Error when loading digram with visionodes
Reply #11 - May 9th, 2024 at 9:17am
Print Post  
nevermind that, i just took the ones that came with your example project Wink

it works now thank you for your efforts!

one little question, in this newer version of the libraries, my drag and drop behaviour has changed(i implemented my own nodelist since we needed a horizontal layout) is there documentation on this somewhere?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3248
Joined: Oct 19th, 2005
Re: "the structure of this object has changed" Error when loading digram with visionodes
Reply #12 - May 9th, 2024 at 10:13am
Print Post  
I guess the installer might have not replaced older assemblies if you didn't uninstall first, or your project had 'use specific version' property enabled for the references.

There's some drag-and-drop changes listed for v7.0.1:
https://www.mindfusion.eu/onlinehelp/flowchartnet/CC_What_s_New_in_this_Release_...

Quote:
Set DragIndicator to MouseCursor to revert to old behavior


Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
G_G
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 16
Joined: Dec 8th, 2021
Re: "the structure of this object has changed" Error when loading digram with visionodes
Reply #13 - May 10th, 2024 at 5:46am
Print Post  
i changed the dragindicator but it does not work yet.
It does when i set  a breakpoint at the DiagramView1.DragEnter eventhandler, so maybe this is timing related?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3248
Joined: Oct 19th, 2005
Re: "the structure of this object has changed" Error when loading digram with visionodes
Reply #14 - May 10th, 2024 at 6:30am
Print Post  
What exactly isn't working?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint