Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 886527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:04:59+00:00 2026-05-15T13:04:59+00:00

Background: I’ve been using the November 2009 release of the Silverlight Toolkit Charting components

  • 0

Background:

I’ve been using the November 2009 release of the Silverlight Toolkit Charting components in a monitoring application that updates multiple line charts every 10 or so seconds.

Each chart has a binding to an ObservableCollection. DataValuePair is simple class containing only two properties (DateTime and int). On each addition of a DataValuePair to the collection, items are removed that have passed a certain point in time (i.e. there is always < 50 DataValuePair objects in each collection).

Problem:

Memory just keeps going up and up. In WinDbg, I can see that the DataValuePair objects (even the ones that have been removed from the ObservableCollections) are still in the heap and are reference by the some elements of the charting component.

There are no other references to the objects in my application code, and the objects are removed from the ObservableCollections by a .Remove(item). I assume these would be deleted by the GC.

Can anyone see if I’m going wrong somewhere or is this a problem with the charting components?

Cheers!
Chris

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T13:05:00+00:00Added an answer on May 15, 2026 at 1:05 pm

    Right, I’ve seem to have fixed this after two days trying!

    Seems the memory leak was cause by styling on the LineDataPoints, which I’ve changed from this:

    <Style x:Key="SparklineDataPointStyle" TargetType="charting:LineDataPoint">
        <Setter Property="Template" Value="{x:Null}" />
        <Setter Property="Background" Value="LimeGreen" />
    </Style>
    

    to this:

    <Style x:Key="SparklineDataPointStyle" TargetType="charting:LineDataPoint">
            <Setter Property="Background" Value="LimeGreen" />
    </Style>
    

    I.e., removing the Template setter that was previously set to null.

    I’m not quite sure why this is but I will investigate.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background: At my company we are developing a bunch applications that are using the
Background: Some time ago, I built a system for recording and categorizing application crashes
Background I am writing and using a very simple CGI-based (Perl) content management tool
Background I have been asked by a client to create a picture of the
Background We have a Windows .NET application used by our field employees who travel
Background: I'm working on a system where the developers seem to be using a
Background : I currently have a Web Forms, ASP.NET 3.5/C# application which I'm interested
Background: writing an automated release script to export changed files between versions from SVN
Background: I'm using Google's protobuf , and I would like to read/write several gigabytes
Background I have a web app that will create an image from user input.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.