Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,112
    • Issues 2,112
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #34951
Closed
Open
Issue created Jan 26, 2019 by FPC Admin account@fpc_adminOwner

Memleak in TStatusBar with GTK2

Original Reporter info from Mantis: Timm Thaler
  • Reporter name: Timm Thaler

Description:

If the panel text in a TStatusbar is updated with different content (e.g. timer, event counter...), the used program memory rises permanently.

Steps to reproduce:

put a TStatusBar with one Panel to a Form
put a Timer to that Form, set it to 10msec
update the statusbar every timer event with changing content

  Inc(cykl);
  If cykl >= 50 then cykl := 1;
  sts_bar.Panels[0].Text := StringOfChar('I', cykl);

see the used memory in the Taskmanager rising.

Additional information:

This happens with GTK2 widgetset in Linux, but not with WinApi widgetset in Windows.

It seems only to happen if the new content is different.

Mantis conversion info:

  • Mantis ID: 34951
  • OS: Raspbian / other Linux
  • OS Build: Stretch
  • Build: r40963
  • Platform: Raspberry Pi / ARM
  • Version: 2.3 (SVN)
  • Fixed in version: 2.1 (SVN)
  • Fixed in revision: 60250 (#ec7a5c0c)
  • Target version: 2.0
Assignee
Assign to
Time tracking