Problem of Memory leak

  • sulust 3 months, 2 weeks ago

    Hi. i’m using Visual Studio 2013 and fpspread 4 for winform.
    i need solve this memory leak problem.
    FpSpread1 is placed on Panel1, and will flick.
    But In Task Manager(Ctrl+Alt+Del), memory usage continues to increase.
    Eventually, the program stops because of memory problems.
    Why is this happening?

    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;
    
    namespace _170410_LEAKtest
    {
        public partial class Form1 : Form
        {
            bool flick = false;
          
            public Form1()
            {
                InitializeComponent();
                inip();
     
                timer1.Interval = 10;
                timer1.Start();
            }
    
            private void inip()
            {
                fpSpread1.ActiveSheet.RowCount = 20;
                fpSpread1.ActiveSheet.ColumnCount = 20;
                fpSpread1.ActiveSheet.Cells[0, 0, 19, 19].Font = new Font(“Consolas”, 18, FontStyle.Bold);
                fpSpread1.ActiveSheet.Cells[0, 0, 19, 19].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Distributed; 
                fpSpread1.ActiveSheet.Cells[0, 0, 19, 19].Value = “ABCDE”;
            }
    
            private void timer1_Tick(object sender, EventArgs e)
            {
                if (flick == false)
                {
                    panel1.Visible = false;
                    flick = true;
                }
                else
                {
                    panel1.Visible = true;
                    flick = false;
                }
            }
    
        }
    }
  • 23p
    GinaDan23p 3 months, 2 weeks ago

    Hi,

    You may want to try a trial of Spread Windows V10 and see if this issue has been resolved. There have been many resolved issues since V4.

    Thanks, Gina

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to create new topics.