Resource leak in menus
- Giovany Vecchi
- Posts: 129
- Joined: Mon Jun 05, 2006 9:39 pm
- Location: Brasil
Re: Resource leak in menus
This problem also occurs in MDICHILD windows and Dialogs NON MODAL. Perhaps the problem is in NON MODAL procedures.
- gkuhnert
- Posts: 274
- Joined: Fri Apr 04, 2008 1:25 pm
- Location: Aachen - Germany // Kerkrade - Netherlands
- Contact:
Re: Resource leak in menus
James, Antonio,
how does the GDI count work? Ist it part of spy++ (spyxx.exe)?
how does the GDI count work? Ist it part of spy++ (spyxx.exe)?
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: Resource leak in menus
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
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
- gkuhnert
- Posts: 274
- Joined: Fri Apr 04, 2008 1:25 pm
- Location: Aachen - Germany // Kerkrade - Netherlands
- Contact:
Re: Resource leak in menus
James,
thanks for the explanation, now I found it!
thanks for the explanation, now I found it!
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Resource leak in menus
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
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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Resource leak in menus
In my tests it seems as hDCs are increasing
Please click on the refresh button in gdiview.exe
Please click on the refresh button in gdiview.exe
Re: Resource leak in menus
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.
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.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Resource leak in menus
Check for unreleased fonts in your code. If you create a font then you are responsable to oFont:End() itbetoncu 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.
Re: Resource leak in menus
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.
As I said before only the fonts are continiously increasing when I move the cursor amoung the menu items.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Resource leak in menus
Birol,
many thanks for your feedback
we are checking it
many thanks for your feedback
we are checking it
Re: Resource leak in menus
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
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
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
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
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact: