Resource leak in menus

Re: Resource leak in menus

Postby Giovany Vecchi » Mon Jul 24, 2017 12:58 pm

This problem also occurs in MDICHILD windows and Dialogs NON MODAL. Perhaps the problem is in NON MODAL procedures.
User avatar
Giovany Vecchi
 
Posts: 205
Joined: Mon Jun 05, 2006 9:39 pm
Location: Brasil

Re: Resource leak in menus

Postby gkuhnert » Mon Jul 24, 2017 8:52 pm

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
gkuhnert
 
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands

Re: Resource leak in menus

Postby James Bott » Mon Jul 24, 2017 10:36 pm

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
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Resource leak in menus

Postby gkuhnert » Tue Jul 25, 2017 6:50 am

James,

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

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
User avatar
gkuhnert
 
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands

Re: Resource leak in menus

Postby Antonio Linares » Mon Jul 31, 2017 9:47 am

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: 41205
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Resource leak in menus

Postby Antonio Linares » Mon Jul 31, 2017 9:49 am

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
Antonio Linares
Site Admin
 
Posts: 41205
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Resource leak in menus

Postby betoncu » Mon Jul 31, 2017 5:24 pm

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
betoncu
 
Posts: 126
Joined: Sat Oct 08, 2005 9:38 pm
Location: Cyprus (North)

Re: Resource leak in menus

Postby Antonio Linares » Tue Aug 01, 2017 4:44 am

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
Antonio Linares
Site Admin
 
Posts: 41205
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Resource leak in menus

Postby betoncu » Tue Aug 01, 2017 3:38 pm

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
betoncu
 
Posts: 126
Joined: Sat Oct 08, 2005 9:38 pm
Location: Cyprus (North)

Re: Resource leak in menus

Postby Antonio Linares » Fri Aug 04, 2017 7:28 am

Birol,

many thanks for your feedback

we are checking it
regards, saludos

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

Re: Resource leak in menus

Postby Randal » Tue Aug 15, 2017 11:32 pm

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: 260
Joined: Mon Oct 24, 2005 8:04 pm

Re: Resource leak in menus

Postby Randal » Tue Aug 22, 2017 5:02 pm

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
Randal
 
Posts: 260
Joined: Mon Oct 24, 2005 8:04 pm


Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 8 guests