C
Chris
I have a VB6 standalone EXE that uses the Visio COM library to add master
shapes to a Visio file. There is no user interaction and the shapes are
added quickly in succession although I yield (Doevents & Sleep) in between
adding shapes because it seems to reduce crashing.
However, I still get the following strange behaviour and crashes in the
EXE:-
1) The EXE will sometimes crash after leaving a method that has added new
shapes to the Visio page. (I guess it is the memory cleanup).
2) The parameters that a method receives are sometimes different to the ones
passed. For example, If I pass a string value MyString (ByVal) to a method
which then calls itself again and passes MyString unchanged then on entry to
the 2nd call the value of MyString has changed. There is nothing (and I do
mean nothing) that changes MyString.
Are there known problems doing this type of thing in Visio? I have
re-installed Visio and Visual Studio as well as the latest SPs.
shapes to a Visio file. There is no user interaction and the shapes are
added quickly in succession although I yield (Doevents & Sleep) in between
adding shapes because it seems to reduce crashing.
However, I still get the following strange behaviour and crashes in the
EXE:-
1) The EXE will sometimes crash after leaving a method that has added new
shapes to the Visio page. (I guess it is the memory cleanup).
2) The parameters that a method receives are sometimes different to the ones
passed. For example, If I pass a string value MyString (ByVal) to a method
which then calls itself again and passes MyString unchanged then on entry to
the 2nd call the value of MyString has changed. There is nothing (and I do
mean nothing) that changes MyString.
Are there known problems doing this type of thing in Visio? I have
re-installed Visio and Visual Studio as well as the latest SPs.