Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visio memory leaks

Status
Not open for further replies.

mfishbey

Programmer
Joined
May 12, 2006
Messages
1
Location
US
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 really think that you will get more response in a "C" forum, and there are several here.

Hope this Helps

rvnguy
"I know everything..I just can't remember it all
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top