XBROWSE memory leak - SOLVED

XBROWSE memory leak - SOLVED

Postby MGA » Wed Sep 02, 2020 9:46 pm

Sr. Antonio, utilizo la versión de FIVEWIN 17.04, y noté una pérdida de memoria en xbrowse, al usar GDIVIEW, noté que (PEN) no liberó memoria.

Quizás ya lo haya corregido, pero el problema estaba en el método:

METHOD Adjust() CLASE TXBrowse
...

//aqui***********************************
if ::hRowPen != nil
DeleteObject( ::hRowPen )
::hRowPen := nil
endif
********************************************
do case
case nStyle == LINESTYLE_BLACK .or. nStyle == LINESTYLE_RAISED .or. nStyle == LINESTYLE_INSET
::hRowPen := CreatePen( If( ::nColorPen == nil, PS_NULL, PS_SOLID ), ::nSizePen, ::nColorPen )
case nStyle == LINESTYLE_DARKGRAY
::hRowPen := CreatePen( PS_SOLID, ::nSizePen, CLR_GRAY )
case nStyle == LINESTYLE_FORECOLOR
::hRowPen := CreatePen( PS_SOLID, ::nSizePen, ::nClrText )
case nStyle == LINESTYLE_LIGHTGRAY
::hRowPen := CreatePen( PS_SOLID, ::nSizePen, CLR_LIGHTGRAY )

end case
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: XBROWSE memory leak - SOLVED

Postby MGA » Wed Sep 09, 2020 1:33 pm

aparentemente no es interesante para fivetech.
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: XBROWSE memory leak - SOLVED

Postby Antonio Linares » Wed Sep 09, 2020 2:02 pm

A veces se nos pasa algún mensaje :-)

gracias por el recordatorio
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: XBROWSE memory leak - SOLVED

Postby nageswaragunupudi » Thu Sep 10, 2020 3:13 am

Included in FWH2008.
Thanks.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10656
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 69 guests