D
David Parker
I use Building Plan\Color By Value in many applications .. not just for
floor layouts, but also for network diagrams, for example.
I have a vb.net COM add-in that uses AddAdvise for trapping selected events.
It appears that I can cause Visio to crash if my add-in is loaded and I use
Color By Value for a second time on the same page, after deleting the legend
that it created on the first pass. (It doesn't have to be the second, it
could be third, fourth, or whatever - just so long as I delete the
previously created legends).
I have trapped the EnterScope and EndScope for the Run Addon to ensure that
all my events are not doing anything whilst the Color By Value addon is
running, but it still crashes just efter it adds its first rectangle.
Usig EventMontor, I can see that the Color By Value addon does not disable
events whils processing (and it changes A LOT).
Saving the drawing between uses of Color By Value seems to prevent crashes,
as does closing and opening the document. I have tried to force a document
clean, rather than saving, but to no avail.
The Color By Value addon obviously tries to update previously created
legends, and I suspect that the deleted legends are still in memory until
they are flushed by a document save.
Has anyone seen this before? Can anyone suggest a way around this?
floor layouts, but also for network diagrams, for example.
I have a vb.net COM add-in that uses AddAdvise for trapping selected events.
It appears that I can cause Visio to crash if my add-in is loaded and I use
Color By Value for a second time on the same page, after deleting the legend
that it created on the first pass. (It doesn't have to be the second, it
could be third, fourth, or whatever - just so long as I delete the
previously created legends).
I have trapped the EnterScope and EndScope for the Run Addon to ensure that
all my events are not doing anything whilst the Color By Value addon is
running, but it still crashes just efter it adds its first rectangle.
Usig EventMontor, I can see that the Color By Value addon does not disable
events whils processing (and it changes A LOT).
Saving the drawing between uses of Color By Value seems to prevent crashes,
as does closing and opening the document. I have tried to force a document
clean, rather than saving, but to no avail.
The Color By Value addon obviously tries to update previously created
legends, and I suspect that the deleted legends are still in memory until
they are flushed by a document save.
Has anyone seen this before? Can anyone suggest a way around this?