Page 2 of 2

Re: Resource leak in menus

PostPosted: Mon Jul 24, 2017 12:58 pm
by Giovany Vecchi
This problem also occurs in MDICHILD windows and Dialogs NON MODAL. Perhaps the problem is in NON MODAL procedures.

Re: Resource leak in menus

PostPosted: Mon Jul 24, 2017 8:52 pm
by gkuhnert
James, Antonio,

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

Re: Resource leak in menus

PostPosted: Mon Jul 24, 2017 10:36 pm
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

Re: Resource leak in menus

PostPosted: Tue Jul 25, 2017 6:50 am
by gkuhnert
James,

thanks for the explanation, now I found it!

Re: Resource leak in menus

PostPosted: Mon Jul 31, 2017 9:47 am
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

Re: Resource leak in menus

PostPosted: Mon Jul 31, 2017 9:49 am
by Antonio Linares
In my tests it seems as hDCs are increasing

Please click on the refresh button in gdiview.exe

Re: Resource leak in menus

PostPosted: Mon Jul 31, 2017 5:24 pm
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.

Re: Resource leak in menus

PostPosted: Tue Aug 01, 2017 4:44 am
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

Re: Resource leak in menus

PostPosted: Tue Aug 01, 2017 3:38 pm
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.

Re: Resource leak in menus

PostPosted: Fri Aug 04, 2017 7:28 am
by Antonio Linares
Birol,

many thanks for your feedback

we are checking it

Re: Resource leak in menus

PostPosted: Tue Aug 15, 2017 11:32 pm
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

Re: Resource leak in menus

PostPosted: Tue Aug 22, 2017 5:02 pm
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

Re: Resource leak in menus

PostPosted: Tue Aug 22, 2017 5:11 pm
by Enrico Maria Giordano
Randal,

yes, it is.

EMG