Little bug in TWBrowse

Little bug in TWBrowse

Postby Enrico Maria Giordano » Wed Feb 08, 2006 4: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
User avatar
Enrico Maria Giordano
 
Posts: 8410
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby James Bott » Fri Feb 10, 2006 8:09 pm

Enrico,

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

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Enrico Maria Giordano » 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
User avatar
Enrico Maria Giordano
 
Posts: 8410
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Sat Feb 11, 2006 5:56 pm

Enrico,

Fixed. Thanks,
regards, saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 80 guests