FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Little bug in TWBrowse
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Little bug in TWBrowse
Posted: Wed Feb 08, 2006 04:56 PM

In the function wBrwLine() there are

hOld = SelectObject( hBrush )

and

SelectObject( hOld )

while they should be

hOld = SelectObject( hDC, hBrush )

and

SelectObject( hDC, hOld )

EMG

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Little bug in TWBrowse
Posted: Fri Feb 10, 2006 08:09 PM

Enrico,

Could you explain what that bug is causing or not causing?

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Little bug in TWBrowse
Posted: Fri Feb 10, 2006 10:56 PM

It's hard to say. The wrong handle is passed to SelectObject() API. At least the brush is just not activated. At worst we have a resource leak or similar unpleasant effects.

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Little bug in TWBrowse
Posted: Sat Feb 11, 2006 05:56 PM

Enrico,

Fixed. Thanks,

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion