Bug in Microsoft Vision 2007 with Service Pack 1

K

kathir@vsea

We have a Visio plug-in application to manipulate our Visio drawings. Visio
crashes while we are calling Application.Documents.OpenEx(<filename>,
visOpenCopy) to open the copy of a file. We are unable to proceed with usage
of our plug-in application. Please provide us the solution.

If you install the latest service pack 1 (SP1) for Office 2007. Visio
crashes when running the below code snippet for opening the copy of a
document using Documents.OpenEx(<stencilname>, visOpenCopy). I think legacy

Code Snippet:

Dim appVisio As Object
Dim BlankStencilObj As Visio.Document 'Blank stencil created using Visio
2003
Set appVisio = GetObject(, "visio.application")
Set BlankStencilObj = appVisio.Documents.OpenEx("BLANKSTENCIL.VSS",
visOpenCopy)

If I am trying to achieve the same action using
Document.AddEx(<Stencilname>) also crashes the Visio.

Set BlankStencilObj = appVisio.Documents.AddEx("BLANKSTENCIL.VSS",
visMSDefault)

This does not happen when the Service Pack 1 is not installed.
 
P

Paul Herber

We have a Visio plug-in application to manipulate our Visio drawings. Visio
crashes

Are you sure it is Visio that is crashing or is it just your
application code that is stopping with an error?

while we are calling Application.Documents.OpenEx(<filename>,
visOpenCopy) to open the copy of a file. We are unable to proceed with usage
of our plug-in application. Please provide us the solution.

If you install the latest service pack 1 (SP1) for Office 2007. Visio
crashes when running the below code snippet for opening the copy of a
document using Documents.OpenEx(<stencilname>, visOpenCopy). I think legacy

Code Snippet:

Dim appVisio As Object
Dim BlankStencilObj As Visio.Document 'Blank stencil created using Visio
2003
Set appVisio = GetObject(, "visio.application")
Set BlankStencilObj = appVisio.Documents.OpenEx("BLANKSTENCIL.VSS",
visOpenCopy)

Does BLANKSTENCIL.VSS exist in a path the open can find?
If not then it will stop with an error.
 
K

kathir@vsea

Visio is not craching while opennig a copy of file which is created using
Visio 2007, but it was crashing for prior to 2003 version vss files.

Workaround: Open Visio application. Navigate to Open menu and select a
previous version of vss file and click Open as Copy. See Visio crashes now.
 
P

Paul Herber

Visio is not craching while opennig a copy of file which is created using
Visio 2007, but it was crashing for prior to 2003 version vss files.

Workaround: Open Visio application. Navigate to Open menu and select a
previous version of vss file and click Open as Copy. See Visio crashes now.

Could you describe what you mean by crashes?
There are several things that could be happening:
a. your VBA contains an error which Visio is reporting
b. Visio is returning an error that your VBA isn't handling
c. an exception is occuring that your VBA isn't handling
d. there is a security problem (quite possible if you are handling
files prior to Visio 2003)
e. an internal error in Visio
f. a fatal interaction within Visio, this will cause a memory dump

Only one of these is a crash (f).

(We can't see what is on your screen)
 
K

kathir@vsea

This crash under the option
e. an internal error in Visio
f. a fatal interaction within Visio, this will cause a memory dump

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top