Resource leak in config dialog (minor)

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Resource leak in config dialog (minor)

Post by *Lefteous »

Tested on Win7 Pro 64, TC 9.0a x64, HDD
  1. Open task manager and make sure the GDI objects column is displayed. Remember the GDI objects count for the TC process.
  2. Open TC settings dialog
  3. Click OK
  4. Back in task manager the GDI objects count has increased by 2.
Expected: No GDI objects count increase.

This can be repeated forever.
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

Not confirmed, Tested on Windows 10 Pro 64, TC 9.0a x64 & x32

After opening TC settings dialog, GDI objects increase a little bit then back to previous count after closing.
User avatar
solid
Power Member
Power Member
Posts: 747
Joined: 2004-08-09, 11:20 UTC

Post by *solid »

Not confirmed either.
TC 9.0a x86, Win7 pro sp1 x64
Same behaviour as ts4242, gdi objects return to previous number after closing settings.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

I guess there are some special conditions which could be difficult to reproduce. I also cannot reproduce it all the time.
User avatar
petermad
Power Member
Power Member
Posts: 14743
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Mostly when I open the config dialog the GDI count increases by 8 and when I close the dialog it decreases by 8 as well. But some time when I open the dialog it increases by more than 8, but it always only decreases by 8 when the dialog is closed - and that way the GDI count can slowly increase more and more.

Another observation: I have access to each of the different sections in the config dialog directly from my menu (see signature below) - and if I go directly to other parts of the config dialog, the GDI count is more likely to increase with more than 8 - especially going directly to the Misc. section can make the count icrese with for example 20, but still it only decreases with 8 when I close the dialog.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Some GDI items are cached by Delphi - they get created when used for the first time, and only deleted when the program is closed. To my knowledge, there is currently no resource leak.
Author of Total Commander
https://www.ghisler.com
Post Reply