G
Geordie
Hi,
I'm writing code to save and load files in a custom Visio application that
uses the Visio drawing control.
When I set the drawingControl.src property the first time, on start up of
the application, everything works fine. If I try and load a new file the call
to set the SRC property returns an AccessViolationException. Even if the
second file is the same one that was loaded at start up. So the application
has access.
I have located a post the describes a similar problem by 'Bill Morein'
(http://blogs.msdn.com/wmorein/archi...ug-in-drawing-control.aspx?CommentPosted=true).
The post talks of an upcoming KB fix. I confirmed that the fix is in Visio
SP1 version that I am running.
Has anyone experienced this problem? I am developing on a 64bit Vista
computer that may be part of the problem. Especially since the Office
Planning Sample in the SDK is also failing in the same place.
Thanks in advance.
Geordie
Just got a chance to test the application on a XP machine. The application
worked!! I was able to save and load files. Looks like this is an
undocumented Vista 'feature'... If anyone has any ideas how to overcome this
I'd sure like to hear from you. NOTE I was unable to load a file that I had
previously loaded at intialization.
The actual Exception message is "Attempted to read or write protected
memory. This is often an indication that other memory is corrupt." So it is
not access to the file system, as confirmed by my tests.
I'm writing code to save and load files in a custom Visio application that
uses the Visio drawing control.
When I set the drawingControl.src property the first time, on start up of
the application, everything works fine. If I try and load a new file the call
to set the SRC property returns an AccessViolationException. Even if the
second file is the same one that was loaded at start up. So the application
has access.
I have located a post the describes a similar problem by 'Bill Morein'
(http://blogs.msdn.com/wmorein/archi...ug-in-drawing-control.aspx?CommentPosted=true).
The post talks of an upcoming KB fix. I confirmed that the fix is in Visio
SP1 version that I am running.
Has anyone experienced this problem? I am developing on a 64bit Vista
computer that may be part of the problem. Especially since the Office
Planning Sample in the SDK is also failing in the same place.
Thanks in advance.
Geordie
Just got a chance to test the application on a XP machine. The application
worked!! I was able to save and load files. Looks like this is an
undocumented Vista 'feature'... If anyone has any ideas how to overcome this
I'd sure like to hear from you. NOTE I was unable to load a file that I had
previously loaded at intialization.
The actual Exception message is "Attempted to read or write protected
memory. This is often an indication that other memory is corrupt." So it is
not access to the file system, as confirmed by my tests.