In this sample deleteObject() function fails, because do not release hBrush object.
There is no DC context associate.
Please, help me.
Regards.
- Code: Select all Expand view
- //-------------------------------------------------------------------------//
STATIC FUNCTION PruebaRecursos()
Local hBrush
Local l1, l2
hBrush:= CreateSolidBrush(CLR_RED)
l1:= isgdiobject(hbrush)
l2:= deleteobject(hbrush)
MsgInfo(Transform(l1, "")) // .t.
MsgInfo(Transform(l2, "")) // .f.
return nil