Page 2 of 4
Re: Last FWH version. Memory leak.
Posted: Sat Feb 09, 2013 12:16 pm
by Antonio Linares
IBTC wrote:I had also problem with memory leaks. For me they disappeared after I disabled
at METHOD Initiate of CLASS TComboBox. In older version of FWH this line wasn't there.
Ruediger,
Instead of removing such code, please change the Method End() in Class TComboBox this way:
METHOD End() INLINE ::Hide(), If( ::oGet != nil, ::oGet:End(),), Super:End()
Re: Last FWH version. Memory leak.
Posted: Sat Feb 09, 2013 8:56 pm
by IBTC
Antonio,
Antonio Linares wrote:IBTC wrote:Instead of removing such code, please change the Method End() in Class TComboBox this way:
METHOD End() INLINE ::Hide(), If( ::oGet != nil, ::oGet:End(),), Super:End()
Thanks. But with this change the problem with fonts/memory leak still exists.
Re: Last FWH version. Memory leak.
Posted: Mon Feb 11, 2013 1:53 pm
by Antonio Linares
Ruediger,
Could you please provide a small test to reproduce the memory leak here ? thanks

Re: Last FWH version. Memory leak.
Posted: Mon Feb 11, 2013 4:22 pm
by James Bott
I have had toolbar icons disappear due to memory leaks in the past. One way to test it is to create a memory leak intentionally so you can run the program and keep triggering the memory leak until the icons disappear.
James
Re: Last FWH version. Memory leak.
Posted: Mon Feb 11, 2013 4:49 pm
by Antonio Linares
You can easily check if an application is experiencing GDI objects handles leaking from here:

Trying to find the same option in Windows 8...

Re: Last FWH version. Memory leak.
Posted: Mon Feb 11, 2013 4:53 pm
by Antonio Linares
Found


Re: Last FWH version. Memory leak.
Posted: Mon Feb 11, 2013 5:21 pm
by James Bott
Antonio,
Will you explain what exactly you found?
James
Re: Last FWH version. Memory leak.
Posted: Mon Feb 11, 2013 6:08 pm
by Antonio Linares
James,
How to monitor the GDI objects consumed by an application, reported from the Windows task manager

If there is a GDI objects handles leaking, that amount will keep increasing
Re: Last FWH version. Memory leak.
Posted: Tue Feb 12, 2013 7:46 pm
by Randal
Antonio Linares wrote:James,
How to monitor the GDI objects consumed by an application, reported from the Windows task manager

If there is a GDI objects handles leaking, that amount will keep increasing
Is this the type of memory problem they are reporting? Is this a GDI problem or some other kind of problem?
Thanks,
Randal
Re: Last FWH version. Memory leak.
Posted: Tue Feb 12, 2013 9:41 pm
by Antonio Linares
The problem is related with bitmaps, so it should be a GDI objects handles leaking issue
Re: Last FWH version. Memory leak.
Posted: Wed Feb 13, 2013 10:02 pm
by James Bott
I have the feeling that the disappearing bitmaps are just a symptom of a memory leak elsewhere. As I suggested earlier, I think this could be proven by creating an app with a toolbar, then running a loop that creates something like a font and doesn't destroy it. You might also have to re-display the toolbar occasionally to see the effect.
Regards,
James
Re: Last FWH version. Memory leak.
Posted: Wed Feb 13, 2013 10:17 pm
by James Bott
I re-read the earlier posts in this thread and I think this may be the problem.
I had also problem with memory leaks. For me they disappeared after I disabled
CODE: SELECT ALL EXPAND VIEW
::oGet:SetFont( ::oFont )
at METHOD Initiate of CLASS TComboBox. In older version of FWH this line wasn't there.
Best Regards,
Ruediger Alich
I don't have the 12.12 version of FWH so I can't look at the source, but there may be a font getting created and not destroyed.
Regards,
James
Re: Last FWH version. Memory leak.
Posted: Thu Feb 14, 2013 2:27 pm
by Randal
Wouldn't they be able to identify the problem as a font not being released or a gdi problem using checkres, if that were the problem?
Randal
Re: Last FWH version. Memory leak.
Posted: Thu Feb 14, 2013 2:39 pm
by James Bott
Wouldn't they be able to identify the problem as a font not being released or a gdi problem using checkres, if that were the problem? -Randal
I would think so.
Regards,
James
Re: Last FWH version. Memory leak.
Posted: Thu Feb 14, 2013 3:49 pm
by James Bott
I notice there is a similar discussion of vanishing bitmaps on toolbars back in Nov 2012 here:
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=24329James