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

Post Reply
ShumingWang
Posts: 454
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

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

Post 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
Last edited by ShumingWang on Fri Jan 18, 2008 12:41 am, edited 1 time in total.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
ShumingWang
Posts: 454
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Shuming,

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

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

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
ShumingWang
Posts: 454
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Post 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
Post Reply