The following code consumes memory on every call ? radialGauge1.Value = guageValue;


Program starts at 22MB and after a minute climbs to 47 MB

guagememleak.JPG

Removing the code

radialGauge1.Value = GaugeValue;

And memory is steady.

I get same memory leak updating a bar chart.

notupdateguage.JPG


Updating both Gauge and Chart memory is consumed very fast.

both.JPG



I made a simple test program, It eats memory in both cases using a timer event or manually pushing a button.

Code

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

using System.Threading;



namespace WindowsFormsApp1

{

    public partial class Form1 : Form

    {

        int counter;


        public Form1()

        {

            InitializeComponent();

        }


        private void button1_Click(object sender, EventArgs e)

        {

            //// Run this procedure in an appropriate event.

            //counter = 0;

            //timer1.Interval = 100;

            //timer1.Enabled = true;

            //// Hook up timer's tick event handler.

            //this.timer1.Tick += new System.EventHandler(this.timer1_Tick);

        }


        private void timer1_Tick(object sender, System.EventArgs e)

        {

            counter++;

            if (counter > 100)

                {

                counter = 0;

            }

            radialGauge1.Value = counter;

        }


        private void button2_Click(object sender, EventArgs e)

        {

            counter++;

            if (counter > 100)

            {

                counter = 0;

            }

            radialGauge1.Value = counter;

        }

    }

}





5 Replies

BR Bharathi Rajakantham Syncfusion Team July 1, 2021 03:40 PM UTC

Hi Mark, 

Thanks for contacting Syncfusion Support. 

We have checked the reported query with the Radial Gauge from our end. We can’t replicate the reported issue the program starts with 20mb and then it does not exceed 35mb after a longer period of time. Please check the sample and screenshot for reference. 

Observed Image: 

 

Please ensure our sample and let us know our replication procedure is same as yours if not please share the issue reproducing project file and the video for the same. It will be helpful for us to proceed further and provide a prompt solution on this. 

Regards, 
Bharathi R 



MA Mark July 2, 2021 01:35 AM UTC

Could it be I am using version 4.6-VS2017 Toolbox 16.2.0.41

It’s been so long I forgot how I installed these tools. I better update to the latest version 19.2.0.44 yikes.



SN Sudharsan Narayanan Syncfusion Team July 2, 2021 11:38 AM UTC

Hi Mark,

Thanks for your update.

You can upgrade to our latest version from any installed Syncfusion version. For more information please find the below documentation.

UG : https://help.syncfusion.com/windowsforms/installation-and-upgrade/upgrade

Please let us know if you have any other concerns. We will be glad to assist you.

Regards,
Sudharsan N
 



MA Mark July 2, 2021 12:32 PM UTC

Upgraded and tested it works now as you say , I get maximum of 44mb after 3 minutes. Thanks!



SN Sudharsan Narayanan Syncfusion Team July 5, 2021 04:14 AM UTC

Hi Mark,

Thanks for the update.

Please let us know if you need any further assistance. We will be glad to assist you.
 

Regards,
Sudharsan N


Loader.
Up arrow icon