FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Memory leak
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Memory leak
Posted: Tue Feb 18, 2014 07:41 PM

Hello,

A customer reported me the if he use the program a long time, the program closes.
After testing, I found out that the memory-use is increasing when opening a dialog with a xbrowse, and stays when I close it.
Each time I reopen it, the memory increase.

I check it with sample file testxbrw.prg, and that is the same problem.
Can anyone test is with a newer release, and see if the problem is solved. The version that I use for that application is FWH7.10

Thanks,

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Memory leak
Posted: Wed Feb 19, 2014 04:45 PM

Are you calling oBrw:destroy() when closing the browse?

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: Memory leak
Posted: Wed Feb 19, 2014 04:54 PM

James,

I didn't, but after I added it, it is still the same...

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Memory leak
Posted: Wed Feb 19, 2014 05:21 PM

Mark,

I am using FWH 13.04/xHarbour and I tried testxbr.prg. I tried a couple of different browses and didn't see any leaks. However, it has so many different browses, I am not sure I am using the same ones you did.

Can you provide a very simple example that shows leaks with your version of FWH? I can then compile it with my version to see if the problem has been fixed.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: Memory leak
Posted: Wed Feb 19, 2014 06:41 PM

James,

If I select in testxbrw 'Browse Array data' - 'DBF-structure without record selector', the memory use is increasing. When I close that window, the memory use stays the same. If I the select it again, it is increasing again.

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite

Continue the discussion