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
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