FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour fwh712-801 +harbour 1.1( from fivetech) app crash?
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
fwh712-801 +harbour 1.1( from fivetech) app crash?
Posted: Thu Jan 17, 2008 05:35 AM
Hi,
Someone meets the problem?
Sometimes the dialogs get hangup or screen disordered ,controls include 2007 look xbrowse ,buttons,get dialogs.


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
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
fwh712-801 +harbour 1.1( from fivetech) app crash?
Posted: Thu Jan 17, 2008 07: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
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
fwh712-801 +harbour 1.1( from fivetech) app crash?
Posted: Thu Jan 24, 2008 09: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

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
fwh712-801 +harbour 1.1( from fivetech) app crash?
Posted: Thu Jan 24, 2008 09: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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
fwh712-801 +harbour 1.1( from fivetech) app crash?
Posted: 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
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
fwh712-801 +harbour 1.1( from fivetech) app crash?
Posted: Fri Jan 25, 2008 04: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()

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

Regards!
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651

Continue the discussion