Solved GDI Leak (TD63) - MDI - Ribbonmenus with icons

Report TD 5.x and 6.x bugs and possible workarounds.
wwasilew
Germany
Posts: 28
Joined: 06 Mar 2017, 07:33
Location: Dortmund / Germany

GDI Leak (TD63) - MDI - Ribbonmenus with icons

Post by wwasilew » 16 Nov 2015, 17:42

Hi,

we have founded a GDI leak by using of MDI - window and variable bMenuBarAsRibbonBar = TRUE.
When the menus contains some icons, then the count of GDI - Objects in the memory grows up, every time a form is opened or activated.
The GDI Objects will be no more released, not by closing of forms and not by closing of debug mode.
Only when the apt is closed, will they released.

We have a big MDI - application with a lot of Formwindows and with a lot of Icons.
It does not take long a time, and we have a follow picture in the task manager:
GDI_Leck.jpg
By 10000 GDI - Objects in memory crashs the app or stops responding.

It's really very very critical issue for us and we need a quick help with this.
This existing in TD 63 (SP1) and TD 63 (UPD2).
It works with TD6.1.

We use Windows 7 - SP1 64 Bit (German).
Testcase is atached. Please start the apt and activate alternately both formwindows and check the count of GDI in task manager.
Or press the button "Loop" and wait ;)

Sorry for my english
You do not have the required permissions to view the files attached to this post.
Wladislaw Wasilewitsch
---------------------------------------------------
Software Developer
Materna TMT GmbH

Mike Vandine

Re: GDI Leak (TD63) - MDI - Ribbonmenus with icons

Post by Mike Vandine » 17 Nov 2015, 07:53

I will test this out and get back to you.

Best regards,

tom_bond
Germany
Posts: 108
Joined: 09 Mar 2017, 09:20
Location: Germany

Re: GDI Leak (TD63) - MDI - Ribbonmenus with icons

Post by tom_bond » 17 Nov 2015, 15:53

That's true.
We have a MDI Window app also and the GDI-Objects grows every time we open a form windows as child or close it.
Thomas Janocha
FORMAT Software GmbH

SQLBase 9.0.1, 11.6, 11.7.4, 12.0.2, TeamDeveloper 6.1, 7.0.3, 7.2.0, TD Mobile 2.3

wwasilew
Germany
Posts: 28
Joined: 06 Mar 2017, 07:33
Location: Dortmund / Germany

Re: GDI Leak (TD63) - MDI - Ribbonmenus with icons

Post by wwasilew » 26 Nov 2015, 11:22

Any news about this?
Wladislaw Wasilewitsch
---------------------------------------------------
Software Developer
Materna TMT GmbH

Mike Vandine

Re: GDI Leak (TD63) - MDI - Ribbonmenus with icons

Post by Mike Vandine » 03 Dec 2015, 07:24

Sorry for the delay.

I tried to test this today and discovered that while you are reporting a problem with icons on a ribbonmenu, your sample that you gave did not actually contain any icons; just references to them, i.e. icons\paste.ico.

Can you please give me the icons that should go with the example file?

Thanks!

wwasilew
Germany
Posts: 28
Joined: 06 Mar 2017, 07:33
Location: Dortmund / Germany

Re: GDI Leak (TD63) - MDI - Ribbonmenus with icons

Post by wwasilew » 03 Dec 2015, 08:48

Sorry Mike,

i 've forgot the icons...

the new zip with icons - dir is attached.
You do not have the required permissions to view the files attached to this post.
Wladislaw Wasilewitsch
---------------------------------------------------
Software Developer
Materna TMT GmbH

Mike Vandine

Re: GDI Leak (TD63) - MDI - Ribbonmenus with icons

Post by Mike Vandine » 03 Dec 2015, 09:16

Hi,

I've just tested this with a pre-release of TD6.3 SP1 Update 1 and when using GDIView, the total GDI count stays at exactly what the count was when the form was generated. I tried swapping from one to the other many times, then ran the 'loop' test 6 times and the GDI count remained constant.

I think this one in squashed with Update 1.

Best regards,

wwasilew
Germany
Posts: 28
Joined: 06 Mar 2017, 07:33
Location: Dortmund / Germany

Re: GDI Leak (TD63) - MDI - Ribbonmenus with icons

Post by wwasilew » 04 Dec 2015, 10:28

Hi Mike,

that's good news! But where can i get the Update 1 for TD 6.3SP1?
This is not by downloads on the Gupta website. :?:
Wladislaw Wasilewitsch
---------------------------------------------------
Software Developer
Materna TMT GmbH

Mike Vandine

Re: GDI Leak (TD63) - MDI - Ribbonmenus with icons

Post by Mike Vandine » 04 Dec 2015, 10:38

That's because it's not released yet. I have a bit of advantage. :)

I could be a couple more weeks for the final release. We're verifying bug fixes, etc.

Best regards,

Return to “Bug Reports”

Who is online

Users browsing this forum: [Ccbot] and 1 guest