FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Last FWH version. Memory leak.
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Last FWH version. Memory leak.
Posted: Fri Feb 01, 2013 07:29 PM
Hi all,
I have strange problems in my app with last FWH12.12 version,
after some hours of work my app icons disappear when I go over them with the mouse, see image1.I think this could be due to a memory leak, see image 2.

Any ideas ? Thanks in advance.

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Last FWH version. Memory leak.
Posted: Fri Feb 01, 2013 07:43 PM

Marco,

What FWH version were you using previously ? thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Re: Last FWH version. Memory leak.
Posted: Fri Feb 01, 2013 08:25 PM

FWH 10.11 , BCC 5.82 - xharbour 1.2.1 (rev 6715)

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Last FWH version. Memory leak.
Posted: Fri Feb 01, 2013 09:58 PM

Marco,

Did you do some source code modifications in your app to build with 12.12 ?

Are you using modified FWH classes ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Re: Last FWH version. Memory leak.
Posted: Sat Feb 02, 2013 09:18 AM

Antonio ,
I have the same problem

Maurizio

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Last FWH version. Memory leak.
Posted: Sat Feb 02, 2013 11:22 AM

Maurizio,

Yes, we are aware of such problem, thats why we need to identify a FWH version where there is no such problem so we can compare them and get an idea about what may be the reason. I don't think it is a memory leak but something else.

Have you both check the GDI handles consume to see if they increase ?

Maurizio, could you check what FWH version were you using before and if such problem existed ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Re: Last FWH version. Memory leak.
Posted: Sat Feb 02, 2013 03:59 PM

Antonio,

I update FWH almost every month so therefore it is dificult to find where the problem first originated.
I also don't think it is a memory leak problem because it sometimes happens when you open the program (that is straight away).
I had made many tests but I can't seem to reproduce an example that highlights the problem. I now don't know what else to do. I now it is difficult but we have to find a solution.

Regard,
Maurizio

Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: Last FWH version. Memory leak.
Posted: Sat Feb 02, 2013 05:58 PM
Hi Antonio,
I have experienced a very similar problem that I could not solve:

http://forums.fivetechsupport.com/viewtopic.php?f=3&t=24329

The only way I found to avoid it, it was to stay with xHarbour 1.2.1 Rev 9388... If I compile with newer versions, I loose resources...

The very new version, loose less resources, but it happens... some versions after the one I use, loose a lot of resources...

The same happens with Harbour...

I think is not a problem of FWH, because it happens in FWH12.04 as well as my old version FWH10.02, and the only thing I change is the (x)Harbour compiler...

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Last FWH version. Memory leak.
Posted: Sat Feb 02, 2013 09:01 PM

Marco,

Were you experiencing such effect with FWH 10.10 ? thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Re: Last FWH version. Memory leak.
Posted: Sat Feb 02, 2013 09:35 PM

Hi Antonio,
my previous FWH version I used was 10.11 and my apps run well with this version, without this problem.

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 284
Joined: Mon Oct 24, 2005 08:04 PM
Re: Last FWH version. Memory leak.
Posted: Fri Feb 08, 2013 02:14 PM

Has anyone found a cause and/or solution to this problem?

Thanks,
Randal Ferguson

Posts: 103
Joined: Sat Oct 18, 2008 08:13 PM
Re: Last FWH version. Memory leak.
Posted: Fri Feb 08, 2013 02:48 PM
I had also problem with memory leaks. For me they disappeared after I disabled

Code (fw): Select all Collapse
::oGet:SetFont( ::oFont )


at METHOD Initiate of CLASS TComboBox. In older version of FWH this line wasn't there.
Best Regards,

Ruediger Alich



---

HMG 3.1.3 | FTDN/FWH 13.12 | Harbour 3.2 | BCC/MinGW | Windows XP/Vista/7/8/10 (32/64-Bit), Wine (Linux/Mac) - started 1999 with FW, 1989 with Clipper
Posts: 694
Joined: Fri Oct 07, 2005 06:58 AM
Re: Last FWH version. Memory leak.
Posted: Sat Feb 09, 2013 09:29 AM
It can happen only on Windows 7?

Happens to me something like: [url] viewtopic.php?f=3&t=25592 # p139634 [/ url]

We all use xHarbour?
Un saludo

Fernando González Diez

ALSIS Sistemas Informáticos
Posts: 103
Joined: Sat Oct 18, 2008 08:13 PM
Re: Last FWH version. Memory leak.
Posted: Sat Feb 09, 2013 10:26 AM
fgondi wrote:It can happen only on Windows 7?


My customers reported it also on Windows XP.

fgondi wrote:We all use xHarbour?


We use Harbour.
Best Regards,

Ruediger Alich



---

HMG 3.1.3 | FTDN/FWH 13.12 | Harbour 3.2 | BCC/MinGW | Windows XP/Vista/7/8/10 (32/64-Bit), Wine (Linux/Mac) - started 1999 with FW, 1989 with Clipper
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Last FWH version. Memory leak.
Posted: Sat Feb 09, 2013 12:16 PM
IBTC wrote:I had also problem with memory leaks. For me they disappeared after I disabled

Code (fw): Select all Collapse
::oGet:SetFont( ::oFont )


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, ::End(),), Super:End()
regards, saludos

Antonio Linares
www.fivetechsoft.com