Jump to content
Software FX Community
Sign in to follow this  
Bob

Memory leak in the radial gauge

Recommended Posts

Hi

 I've been chasing this memory leak for some time now .. and at last I think I have it and can reproduce it in a little test app.

 I purchased a memory profiler and saw a lot of references to the gauges.

If I have a marker as well as a needle on the gauge the memory just keeps climbing until eventually my app dies.

I have downloaded the latest update and created a completely new application from scratch ensuring that the references where the latest.

this is my code snippet to replicate.

private void timer1_Tick(object sender, EventArgs e){count++;label1.Text = "count = " + count.ToString();radialGauge1.MainIndicator.Value = count;radialGauge1.MainScale.Indicators[1].Value = (count * 1.5);

}

it sits in a visual studio 2005 windows form, I drop in a timer, on XP SP2 .net 2.0 framework yada yadaI have a copy of my real application which uses the radial gauges deployed on 8 machines which all exhibit the same beaviour.

 My short term fix is to set the scale to itself i.e.

radialGauge1.MainScale.Max = radialGauge1.MainScale.Max;

this seems to clean up the memory.

Hope this is helpful.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...