Problem in saving visio document


Nitin Jain


I have created an Addin for Visio 2007 using VSTO. I want to save some
changes to some shapes of the document before the user close the document.
I got the event handler for BeforeDocumentClose event. From there I am made
changes to some shapes, and then when I am going to call Document.Save
function it throws error "Attempted to read or write protected memory. This
is often an indication that other memory is corrupt". I am getting why it is

Any help will be appreciated.

Nitin Jain


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