- Code: Select all Expand view
METHOD SetMsg( cText ) CLASS TMsgBar
DEFAULT ::cMsg := ""
if ::l2007
::cMsg = cText
::Refresh()
return nil
endif
::GetDC() // must be placed here!!!
...
METHOD SetMsg( cText ) CLASS TMsgBar
DEFAULT ::cMsg := ""
if ::l2007
::cMsg = cText
::Refresh()
return nil
endif
::GetDC() // must be placed here!!!
...
Antonio Linares wrote:This is a necesary fix for FWH 7.11 in Class TMsgBar:
- Code: Select all Expand view
METHOD SetMsg( cText ) CLASS TMsgBar
DEFAULT ::cMsg := ""
if ::l2007
::cMsg = cText
::Refresh()
return nil
endif
::GetDC() // must be placed here!!!
...
Antonio Linares wrote:Patrick,
Its a bad memory leak, as a hDC is created everytime the mouse is moved, and it is not released!
That fix should be applied inmediately if 2007 clause is used
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot], nageswaragunupudi and 58 guests