FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Resource leak in menus
Posts: 244
Joined: Mon Jun 05, 2006 09:39 PM

Re: Resource leak in menus

Posted: 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.

Posts: 274
Joined: Fri Apr 04, 2008 01:25 PM

Re: Resource leak in menus

Posted: Mon Jul 24, 2017 08: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
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: Resource leak in menus

Posted: 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
Posts: 274
Joined: Fri Apr 04, 2008 01:25 PM

Re: Resource leak in menus

Posted: Tue Jul 25, 2017 06:50 AM

James,

thanks for the explanation, now I found it!

Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Resource leak in menus

Posted: Mon Jul 31, 2017 09: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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Resource leak in menus

Posted: Mon Jul 31, 2017 09: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
Posts: 130
Joined: Sat Oct 08, 2005 09:38 PM

Re: Resource leak in menus

Posted: Mon Jul 31, 2017 05: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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Resource leak in menus

Posted: Tue Aug 01, 2017 04: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
Posts: 130
Joined: Sat Oct 08, 2005 09:38 PM

Re: Resource leak in menus

Posted: Tue Aug 01, 2017 03: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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Resource leak in menus

Posted: Fri Aug 04, 2017 07:28 AM

Birol,

many thanks for your feedback

we are checking it

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 284
Joined: Mon Oct 24, 2005 08:04 PM

Re: Resource leak in menus

Posted: 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

Posts: 284
Joined: Mon Oct 24, 2005 08:04 PM

Re: Resource leak in menus

Posted: Tue Aug 22, 2017 05: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

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Resource leak in menus

Posted: Tue Aug 22, 2017 05:11 PM

Randal,

yes, it is.

EMG

Continue the discussion