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

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

Postby ShumingWang » Thu Jan 17, 2008 5:35 am

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.
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby Antonio Linares » Thu Jan 17, 2008 7:15 am

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

Postby ShumingWang » Thu Jan 24, 2008 9:06 am

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
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby Antonio Linares » Thu Jan 24, 2008 9:57 am

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: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Thu Jan 24, 2008 10:20 am

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

Postby ShumingWang » Fri Jan 25, 2008 4:20 am

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
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 53 guests