FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XBROWSE bug (solved)
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
XBROWSE bug (solved)
Posted: Thu Dec 25, 2014 01:53 PM
In this method of xbrowse there are a call to GetDc() but no ReleaseDc()! Is this in this case normal?
Code (fw): Select all Collapse
METHOD Box( nRow, nCol, nHeight, nType , nWidth ) CLASS TXBrwColumn
   local hDC
.....
   hDC     := ::oBrw:GetDC()
......
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: XBROWSE bug ?
Posted: Thu Dec 25, 2014 05:11 PM

i think is necesary the ::oBrw:ReleaseDC() at end of method.-

salu2
carlos vargas

Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: XBROWSE bug ?
Posted: Thu Dec 25, 2014 08:12 PM

Günther,

of course that it is needed. I am including it for next FWH build.

Many thanks!

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: XBROWSE bug (another one!)
Posted: Fri Dec 26, 2014 07:08 PM
Antonio, in
Code (fw): Select all Collapse
METHOD EraseData( nRow, nCol, nHeight, hBrush, lFixHeight ) CLASS TXBrwColumn

is also at the end ::ReleaseDC() required!
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: XBROWSE bug (another one!)
Posted: Fri Dec 26, 2014 07:56 PM

Günther,

To me it is ok as it is:

METHOD EraseData( nRow ) CLASS TXBrowse

...

hDC := ::GetDC()

...

::ReleaseDC()

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: XBROWSE bug (another one!)
Posted: Sat Dec 27, 2014 11:39 AM

Antonio, there are a method EraseData(...) also in CLASS TXBrwColumn!!!!

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: ANTONIO, please look! XBROWSE bug (another one!)
Posted: Tue Dec 30, 2014 06:40 AM

Günther,

yes, you are right, there was a missing call to ::oBrw:ReleaseDC().

Already added. Many thanks! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion