Resource leak in menus

User avatar
Giovany Vecchi
Posts: 129
Joined: Mon Jun 05, 2006 9:39 pm
Location: Brasil

Re: Resource leak in menus

Post by Giovany Vecchi »

This problem also occurs in MDICHILD windows and Dialogs NON MODAL. Perhaps the problem is in NON MODAL procedures.
User avatar
gkuhnert
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands
Contact:

Re: Resource leak in menus

Post by gkuhnert »

James, Antonio,

how does the GDI count work? Ist it part of spy++ (spyxx.exe)?
Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Resource leak in menus

Post by James Bott »

Gilbert,

You can just use the Windows Task Manager to view the current GDI information. Note that you will have to add that column to the view.

Select the Details tab on the Task Manager, then right-click on any column heading, then click on Select Columns and then GDI.

James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
gkuhnert
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands
Contact:

Re: Resource leak in menus

Post by gkuhnert »

James,

thanks for the explanation, now I found it!
Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Resource leak in menus

Post by Antonio Linares »

Please download:
http://www.nirsoft.net/utils/gdiview-x64.zip

from here:
http://www.nirsoft.net/utils/gdi_handles.html

I appreciate if some of you can test and confirm the increased GDI types
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Resource leak in menus

Post by Antonio Linares »

In my tests it seems as hDCs are increasing

Please click on the refresh button in gdiview.exe
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
betoncu
Posts: 120
Joined: Sat Oct 08, 2005 9:38 pm
Location: Cyprus (North)

Re: Resource leak in menus

Post by betoncu »

I have the same problem also. I have checked the GDI count from the task manager and I realised that
when the GDI reaches to 10000, my exe hangs and stop working but the computer does not stop.
I have test with GDIView and I have seen that only the Font is increasing.
Birol Betoncu
birol.betoncu@gmail.com
Using Harbour, FWH 19.05, BCC7
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Resource leak in menus

Post by Antonio Linares »

betoncu wrote:I have the same problem also. I have checked the GDI count from the task manager and I realised that
when the GDI reaches to 10000, my exe hangs and stop working but the computer does not stop.
I have test with GDIView and I have seen that only the Font is increasing.
Check for unreleased fonts in your code. If you create a font then you are responsable to oFont:End() it
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
betoncu
Posts: 120
Joined: Sat Oct 08, 2005 9:38 pm
Location: Cyprus (North)

Re: Resource leak in menus

Post by betoncu »

Antonio, I have done my test with testmnu3.prg in samples folder.
As I said before only the fonts are continiously increasing when I move the cursor amoung the menu items.
Birol Betoncu
birol.betoncu@gmail.com
Using Harbour, FWH 19.05, BCC7
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Resource leak in menus

Post by Antonio Linares »

Birol,

many thanks for your feedback

we are checking it
regards, saludos

Antonio Linares
www.fivetechsoft.com
Randal
Posts: 250
Joined: Mon Oct 24, 2005 8:04 pm

Re: Resource leak in menus

Post by Randal »

Antonio:

I noticed this entry in the latest FWH upgrade notice.

Menus
Fixed: increase font resources

Is this the fix for this particular problem? If so, do I need to purchase the latest upgrade to get the fix?

Can you elaborate about what the problem/fix was and in what version of FWH the problem was introduced?

Thanks,
Randal
Randal
Posts: 250
Joined: Mon Oct 24, 2005 8:04 pm

Re: Resource leak in menus

Post by Randal »

All:

Can anyone tell me if this change in the New FWH 17-07 Update is the fix for this problem?

* MENUS
- Fixed: increase font resources


Thanks,
Randal
Post Reply