C
Chris
I'm populating a Visio file (Visio 2003 SP1) automatically using VB6 SP6.
I'm adding master shapes and setting custom properties.
However, I frequently get an exception in the VB6 memory cleanup when
(implicitly or explicitly) releasing references to Visio objects prior to
saving the file. The problem objects include master shapes or Page objects.
I previously had the problem releasing references to the individual shape
objects (derived from the master) but this was fixed by yielding. The
problem even happens if I wait for 60 secs prior to destroying the refs to
masters or the Page.
I've checked that all refs are destroyed explicitly. I can save the file
before releasing the refs but I still get the crash, although the file is
saved OK.
Can someone help me out on how to fix this problem?
I'm adding master shapes and setting custom properties.
However, I frequently get an exception in the VB6 memory cleanup when
(implicitly or explicitly) releasing references to Visio objects prior to
saving the file. The problem objects include master shapes or Page objects.
I previously had the problem releasing references to the individual shape
objects (derived from the master) but this was fixed by yielding. The
problem even happens if I wait for 60 secs prior to destroying the refs to
masters or the Page.
I've checked that all refs are destroyed explicitly. I can save the file
before releasing the refs but I still get the crash, although the file is
saved OK.
Can someone help me out on how to fix this problem?