Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Inheritance from DiagramView (Read 1842 times)
sledenev
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 25
Joined: Dec 16th, 2009
Inheritance from DiagramView
Dec 21st, 2009 at 3:10pm
Print Post  
Hi,

We are inheriting from DiagramView and experiencing some troubles:


1. After every rebuild of application new instance of Diagram appears on a form ( in design view of Visual Studio ) without appering in source code.

2. Sometimes during compilation Visual Studio crashes and error records appears in Application Event Log:
a) About VS crash
b) .NET Runtime version 2.0.50727.4200 - Fatal Execution Engine Error (71D01192) (0)

We are using FlowChart.Net Pro 5.3.3, Visual Studio 2008, Vista 32bit
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Inheritance from DiagramView
Reply #1 - Dec 21st, 2009 at 3:49pm
Print Post  
Hi,

We are getting the same problems very often, even without inheriting from DiagramView 8) They happen after an assembly that defines a control loaded in the VS designer is updated. Then VS might end up with two versions of the assembly loaded...

A new diagram is added automatically when the DiagramView cannot find a Diagram instance on the form. In that case there is a diagram from a different version of the assembly, the view does not recognize it and adds its own. The crash happens when VS tries to assign an object from one version of the assembly to a property of that type on the diagram or diagramview from the other version, e.g. during form initialization.

Unfortunately we haven't found any way to stop these issues, apart from closing the form and restarting VS. The next time you open the form, VS loads only the new assembly and it should work fine.

Stoyan
  
Back to top
 
IP Logged
 
sledenev
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 25
Joined: Dec 16th, 2009
Re: Inheritance from DiagramView
Reply #2 - Dec 21st, 2009 at 4:37pm
Print Post  
Got it, thanks for your reply. I hope you will find the solution for this problem Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint