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.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14 TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
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.