Visio memory leaks

M

Mikhail Fishbeyn

Hi,

I am using Visio 2003 ActiveX control. I wrote a simple application in C#.
It drops 10 rectangle shapes on a page, starts timer, and on each timer tick
sets Text property of all rectangular shapes. I am monitoring memory usage
with perfmon.exe. The memory used by the application is constantly climbing
up. Calling Garbage Collector doesn't help. Can anybody help me with it?

private void timer1_Tick(object sender, System.EventArgs e)
{
n++;
string str = n.ToString();
for(int y = 1; y < 11; y++)
{
Visio.Shape tmpShape = myPage.Shapes[y];
tmpShape.Text = str;
}
}

Thank,
Mikhail Fishbeyn
Invensys
 

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