We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

FillStyle.Color memory leak

Thread ID:





92452 Jan 15,2010 12:48 PM UTC Mar 9,2010 07:29 AM UTC WinForms 1
Tags: FAQ
kim hyun su
Asked On January 15, 2010 12:48 PM UTC

I am testing with SimpleFlow_2008 project (WinForm.Diagram Sample)

I just changed color of node using timer. but vm is increased continually. I tested for 8 hour.
I want to check why this problem is happened.

follow content is part of sample code. and attached all of sample code.

Please check my problem. Thank you.

private void timer1_Tick(object sender, EventArgs e)
Ellipse ellipse1 = m_Ellipse1 as Ellipse;
Ellipse ellipse2 = m_Ellipse2 as Ellipse;
Syncfusion.Windows.Forms.Diagram.Rectangle rectangle = m_Rectangle as Syncfusion.Windows.Forms.Diagram.Rectangle;
Polygon polygon = m_Polygon as Polygon;

if (m_fCurrent1 == false)
ellipse1.FillStyle.Color = Color.Blue;
m_fCurrent1 = true;
ellipse1.FillStyle.Color = Color.Red;
m_fCurrent1 = false;

if (m_fCurrent2 == false)
ellipse2.FillStyle.Color = Color.Blue;
m_fCurrent2 = true;
ellipse2.FillStyle.Color = Color.Red;
m_fCurrent2 = false;

if (m_fCurrent3 == false)
rectangle.FillStyle.Color = Color.Blue;
m_fCurrent3 = true;
rectangle.FillStyle.Color = Color.Red;
m_fCurrent3 = false;

if (m_fCurrent4 == false)
polygon.FillStyle.Color = Color.Blue;
m_fCurrent4 = true;
polygon.FillStyle.Color = Color.Red;
m_fCurrent4 = false;


Dinesh M [Syncfusion]
Replied On March 9, 2010 07:29 AM UTC

Hi Kim,

This increase in VM should be due to the fact that the HistoryManger of diagram records all the action done there by increasing the memory. Please try using the following code and let me know if it helps you.

private void timer1_Tick(object sender, EventArgs e)
//You code that does some action.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon