Page 1 of 1

fwh712-801 +harbour 1.1( from fivetech) app crash?

Posted: Thu Jan 17, 2008 5:35 am
by ShumingWang
Hi,
Someone meets the problem?
Sometimes the dialogs get hangup or screen disordered ,controls include 2007 look xbrowse ,buttons,get dialogs.

Image
Before ,we used xharbour 996+fwh2.5 without the problems.
Is there a way to detect which resource not released?

Off topic, where could upload jpg picture ?

Best regards!
Shuming Wang

Posted: Thu Jan 17, 2008 7:15 am
by Antonio Linares
Shuming,

Please use www.imageshack.us to upload the screenshots and copy here the provided URLs to see them.

No one else has reported those problems about 7.12, or 8.01. Please provide a sample to reproduce them, thanks

Posted: Thu Jan 24, 2008 9:06 am
by ShumingWang
Antonio,
Open a dialog with buttons,gets, after close, the windows task manage table shows the memory not released.

A xbrowse(dbf,tmysql or array data type), page up will cause memory used increase, While page down,up and down do not increase memory used.
It seems that releaseDC() function do not work.
Harbour 1.1+fwh 801


Best regards!

Shuming Wang

Posted: Thu Jan 24, 2008 9:57 am
by Antonio Linares
Shuming,

Could you please check it with fwh\samples\TestXBrw.prg and check if you also have problems with it ? thanks

Posted: Thu Jan 24, 2008 10:20 am
by Antonio Linares
Shuming,

You may also use this:
http://fivetechsoft.com/forums/viewtopic.php?p=46984

Review Patrizio's explanation about MSDN GDIndicator e GDIUsage

Posted: Fri Jan 25, 2008 4:20 am
by ShumingWang
Antonio,
1.Sorry by my mistake removed a line DeleteObject( hBrush ) in method paintheader(), caused resource not released.

2.method paintheader()
if Empty( cHeader )
::oBrw:ReleaseDC()
return nil
endif
should change into
if Empty( cHeader )
if lOwnDC;::oBrw:ReleaseDC(); end
return nil
endif

3. method box()
add ::obrw:releaseDC()

4. dialog.prg
add METHOD UPDATE() inline ::aEvalWhen(),super:UPDATE()
to update controls lwhen

Regards!
Shuming Wang