Visual Studio 2012 crashes when open a form that contains a Visio 2013 Preview Drawing control. (Microsoft Visio 15.0 Drawing Control – Com Component).
Steps to reproduce this issue.
-
Open Visual Studio 2012
-
Create a new Windows Forms Application (C#)
-
Add COM Component Microsoft Visio 15.0 Drawing control to toolbox.
-
Place Visio Drawing Control on Form2.cs[Design].
-
Save all files, project and solution.
-
Close Form1.cs [Design] in the Visual Studio 2012 IDE.
-
Double click Form1.cs in the Solution explorer to edit form [Design] view.
-
Visual Studio Application Crashes at this point.
Is this a known bug in Visio 2013 Preview.
Using the Visio 2013 Drawing Control in VB6 applications also produces a similar result with &H80004005 (-2147467259) error message shown.
Our product makes use of the Visio 2013 control in a VB6 application. It is also an issue in Visual Studio 2012.
Any ideas of what is going on?
This is indeed a known bug: See http://connect.microsoft.com/VisualStudio/feedback/details/766229/visio-2013-preview-drawing-control-on-a-windows-forms-application-crashes
The best workaround I could come up with so far was to instantiate the drawing control in code only. In other words. Don’t drag it onto your form (etc.) from the toolbox in the IDE but only create and instantiate the control from within the code. That way the control does not appear in the GUI form editor and it will not freeze your Visual Studio instance.
If you are not sure how to do that you can always drag it temporarily to your form and lift the relevant code for the control from your FormName.Designer.cs (or .vb) file.
Mind you my experience is with VS2012 only. I am not sure if you can even use the control in VB6 (don’t have it installed to test).