Slow performance when editing certain shapes -- how to resolve?

D

DanaLe

I've got the Visio control in my own custom application. Everything is pretty
peachy, except that whenever I add Server or Mainframe shapes into any of my
drawings, editing the drawing slows down considerably and the CPU cycles
being used shoots up considerably. Just trying to change the text/label of a
shape may take several seconds for the letter typed to show up in the text
box.

When the same files are opened in the normal Visio application they run just
fine, no delay.

When I drop other, simple shapes onto the drawing surface in my custom
application it runs fine and fast, no performance issues.

I'm using VS2005 and Visio 11 SP3.

Any pointers?
 
J

John... Visio MVP

DanaLe said:
I've got the Visio control in my own custom application. Everything is
pretty
peachy, except that whenever I add Server or Mainframe shapes into any of
my
drawings, editing the drawing slows down considerably and the CPU cycles
being used shoots up considerably. Just trying to change the text/label of
a
shape may take several seconds for the letter typed to show up in the text
box.

When the same files are opened in the normal Visio application they run
just
fine, no delay.

When I drop other, simple shapes onto the drawing surface in my custom
application it runs fine and fast, no performance issues.

I'm using VS2005 and Visio 11 SP3.

Any pointers?


Where did the troublesome shapes come from? Some 3rd party shapes are far
more complex than required.

John... Visio MVP
 
D

DanaLe

I'm using the shapes from the stencils included with Visio 2003... the
'Network and Peripherals' stencil. The mainframe shape slows down my custom
application quite a bit; the first mainframe object a little bit, by the time
I've added 4+ the slowdown is pretty dramatic.

Server shapes elicit the same performance slowdown, but to a lesser degree.

Thanks for any help/suggestions you may have!
 
P

Paul Herber

I'm using the shapes from the stencils included with Visio 2003... the
'Network and Peripherals' stencil. The mainframe shape slows down my custom
application quite a bit; the first mainframe object a little bit, by the time
I've added 4+ the slowdown is pretty dramatic.

Server shapes elicit the same performance slowdown, but to a lesser degree.

Is it only these shapes? What about if you add shapes from, say, the
flowchart shapes?
If it is only these network shapes, try this.
Start a new network drawing, add a couple of mainframe shapes so the
slowdown is noticeable, now select one of these mainframe shapes
menu Window -> Show Shapesheet
click on the section Custom Properties and delete the section.
Close the Shapesheet window.
Now duplicate that mainframe shape a few times. Has that improved
things?
If not then delete the duplicates and repeat the above Shapesheet
section deletion with a. the User-defined cells b. Actions.

Unless you have an add-on loaded which is doing something special with
these shapes then the above are the only significant differences from
other Visio shapes.
 
D

DanaLe

Yes, it is only these two shapes -- mainframe and server -- that I've
observed these behavior with. There very well may be more but I just haven't
had occasion to use them. All other shapes update quickly (basic flowchart).

I altered the mainframe shape in four different ways as you suggested:
deleting the custom properties section, the user defined cells, and the
actions section, and in one case, all three of them.

Still, the performance gets slower and slower with each mainframe object I
add to the drawing.

There must be something translational about using the control in my
application, no? These shapes update just fine in the full Visio application,
it's only in the control where the performance suffers.

Thanks again for any help or suggestions.
 
D

DanaLe

Ding ding ding! We have a winner :) Wow, the difference is incredible!

Let me buy you a beer the next time you're in San Francisco. Thank you!
 
J

John... Visio MVP

Furhter to what Christian mentioned, there is a knowledge based article on
the issue
http://support.microsoft.com/kb/839079/

One of the recommendation is to make sure you have the latest patches.

I took a look at the shapes and though they are not simple shapes, they are
not overly complex. I have seen shapes imported from AutoCad that end up
having more than a thousand components, the mainframe shape is no where in
the same league.

John... Visio MVP
 

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

Top