FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Excessive memory consuption
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Excessive memory consuption
Posted: Wed Sep 01, 2010 10:10 AM

Hello

I have noticed an excessive memory consuption with my app since i updated to fwh 10.7

Obviously there is a memory leak somewhere, using more and more the app gets to crash

Any idea ?

I have seen that fwh 10.8 fixes a brush memory leak , can this be the problem ?

Thanks for the help

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Excessive memory consuption
Posted: Wed Sep 01, 2010 10:15 AM

Richard,

Please use the code shown here:

viewtopic.php?f=3t=15935start=0hilit=setresdebug

and please let me know what results you get, thanks :-)

&&&

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: Excessive memory consuption
Posted: Wed Sep 01, 2010 01:52 PM
Antonio

These are the results

before


after


i need to understand certain values why they are there , especially bmp ?

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Excessive memory consuption
Posted: Wed Sep 01, 2010 06:06 PM

Richard,

What source code do you have in main line 144 ?

If there are several BMPs but their handles are zero then there is no problem with them as they have really been released

Do you notice if there are more handles (or changed ones) after some execution time ? It seems as the BMP from line 144 has changed its handle value

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: Excessive memory consuption
Posted: Thu Sep 02, 2010 03:56 AM

Antonio

@ CTLIG,CTCOL BUTTONBMP TABOBJ[01] BITMAP DIRAPPLI() + "BMP\APROPOS.BMP" SIZE 40,40 OF oWND PIXEL ADJUST;
MESSAGE "A Propos" ;
ACTION APROPOS(CUSER,TABSEC) // this is line 144
TABOBJ[01]:cToolTip = "A Propos"
TABOBJ[01]:lTransparent = .T.

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Excessive memory consuption
Posted: Thu Sep 02, 2010 08:43 AM

Richard,

In your application, do you modify TABOBJ[01] further on in any way ?

I wonder why its bitmap handle has changed (from your screenshots)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: Excessive memory consuption
Posted: Thu Sep 02, 2010 08:50 AM

Antonio

No this bitmap is never changed , tabobj[01] neither , it is just used for the prompt and transparency

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Excessive memory consuption
Posted: Thu Sep 02, 2010 09:37 AM

Richard,

Are you sure that the above two screenshots belong to the same EXE execution session ?

It seems to me as you have executed the EXE twice, I mean, in different times. Many handles are different.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: Excessive memory consuption
Posted: Thu Sep 02, 2010 01:04 PM

Antonio

You are right, they are not refering to the same session :?

Thanks for the help

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Excessive memory consuption
Posted: Thu Sep 02, 2010 02:08 PM

Richard,

It might be helpful to compile with the older FWH version that you were using and also run the checkres() function for comparison to the one you just generated. This way you can tell what is different between the versions.

Or, maybe you have already done that with the "before" and "after" screenshots? If not, what are those indicating, before and after what?

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: Excessive memory consuption
Posted: Thu Sep 02, 2010 02:43 PM

James

The "before" and "after" stand for memory comparison in order to know what to check

before was at the enry of the program , and after was a bit later in the program (major function)

I had not compared with earlier version (10.5) but that was not a known issue for me and my clients , it has become with 10.7

Things are back to normal now,

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Excessive memory consuption
Posted: Thu Sep 02, 2010 03:04 PM

Richard,

>I had not compared with earlier version (10.5) but that was not a known issue for me and my clients , it has become with 10.7

Yes, I know that you did not have the problem with 10.5 and thus it is valuable to test it for comparison to the version that is showing the problem.

>Things are back to normal now,

Do you mean that the font problem with xbrowse you discussed in another thread, fixed the problem?

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: Excessive memory consuption
Posted: Thu Sep 02, 2010 03:59 PM

James

"Do you mean that the font problem with xbrowse you discussed in another thread, fixed the problem?"

Yes this was the problem, as i always use fonts on my browses

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Excessive memory consuption
Posted: Thu Sep 02, 2010 04:04 PM

Richard,

Many thanks for your feedback :-)

Good to know that the problem is solved now :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion