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
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • 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,086
    • Issues 2,086
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 10
    • Merge requests 10
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 has launched! Please visit Breaking changes in 15.0 and 15.0 Removals to see which breaking changes may impact your workflow.

  • FPC
  • Lazarus
  • LazarusLazarus
  • Issues
  • #30661
Closed
Open
Created Sep 28, 2016 by FPC Admin account@fpc_adminOwner

TTreeView memory leak (WARNING: TResourceCacheItem.IncreaseRefCount 1000 TPenHandleCache)

Original Reporter info from Mantis: jakyro
  • Reporter name:

Description:

TreeView memory leak.

Create Win32/64 LCL application, add TreeView on MainForm, run and start resize MainForm until the message in console/log:

WARNING: TResourceCacheItem.IncreaseRefCount 1000 TPenHandleCache
WARNING: TResourceCacheItem.IncreaseRefCount 10000 TPenHandleCache

I tested it on Windows 10.0.10586 and 10.0.14393.

Steps to reproduce:

Windows 10.0.10586/10.0.14393
lazarus-1.6.0-fpc-3.0.0-win32/win64 2016-02-15

  1. Create LCL graphical application "Menu/File/New.../Project/Application".
    Create MainForm if not created.

  2. Create TreeView on MainForm and add TreeView items 1 or more.

  3. Uncheck "Project Options.../Config and Target/Win32 gui application (-WG)" to see console messages OR run application with argument "--debug-log=log.txt".

  4. Run application. Start resize MainForm (for repaint TreeView) from current size to zero and back, until the message (or close application to save log.txt if application running with --debug-log):

WARNING: TResourceCacheItem.IncreaseRefCount 1000 TPenHandleCache
WARNING: TResourceCacheItem.IncreaseRefCount 10000 TPenHandleCache

Additional information:

WARNING: TResourceCacheItem.IncreaseRefCount 1000 TPenHandleCache
WARNING: TResourceCacheItem.IncreaseRefCount 10000 TPenHandleCache

Mantis conversion info:

  • Mantis ID: 30661
  • OS: Windows
  • OS Build: 10
  • Build: 51630
  • Version: 1.6
  • Fixed in version: 1.9 (SVN)
  • Fixed in revision: r55118 (#dd3f611b)
  • Target version: 1.8
Assignee
Assign to
Time tracking