Images of buttons disappear

Images of buttons disappear

Postby ORibeiro » Fri Sep 13, 2013 10:54 pm

The images of my buttons disappear after a time of use of the system. What can it be? I'm using 11:12 FWH + xHarbour 1.2.1.

Thank you,
Oscar Ribeiro
OASyS Informática
Fwh18.02 + xHarbour 1.2.3 + Bcc72
User avatar
ORibeiro
 
Posts: 187
Joined: Mon Oct 20, 2008 6:33 pm
Location: Itu, Sao Paulo, Brazil

Re: Images of buttons disappear

Postby Antonio Linares » Sat Sep 14, 2013 12:13 pm

Oscar,

Thats a known problem when your app runs out of resources memory, usually due to a wrong use of them.
FiveWin provides two functions to detect what resources are leaking in our applications.

Please call this function at the beginning of your app:

SetResDebug( .T. )

and just before you exit your app do:

FErase( "checkres.txt" )
CheckRes()
WinExec( "notepad checkres.txt" )

You will get a detailed list of resources that are nor properly freed and that are leaking. Next is to located each one and use them in the right way.

In example, if you create a font, later you have to End() it. Same applies for bitmaps, fonts, cursors, icons, etc. all GDI objects that we use on our applications
regards, saludos

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

Re: Images of buttons disappear

Postby ORibeiro » Sun Sep 15, 2013 5:16 pm

Thank you.
Will do it.
Oscar Ribeiro
OASyS Informática
Fwh18.02 + xHarbour 1.2.3 + Bcc72
User avatar
ORibeiro
 
Posts: 187
Joined: Mon Oct 20, 2008 6:33 pm
Location: Itu, Sao Paulo, Brazil

Re: Images of buttons disappear

Postby ORibeiro » Mon Sep 16, 2013 5:13 pm

Linares,

In this text generated by my system, all these objects were not closed?
If it was closed with: End () it does not appear on that list?

16/09/2013 14:07:07: FONT,1258949591,INITBUTTON$(1652)
16/09/2013 14:07:07: FONT,-1190524074,MAIN(113)
16/09/2013 14:07:07: FONT,-653653023,MAIN(117)
16/09/2013 14:07:07: FONT,1342835656,MAIN(118)
16/09/2013 14:07:07: FONT,1258949023,MAIN(121)
16/09/2013 14:07:07: FONT,-1828058303,TDIALOG:GETFONT(2749)->TDIALOG:INITIATE(611)->TDIALOG:ACTIVATE(298)->MSGLOGO(39)->MAIN(139)
16/09/2013 14:07:07: FONT,1426721799,XBACKUPLITE(193)->BACKUP(103)->(b)BUILDMENU(458)->TMENU:COMMAND(461)->TWINDOW:COMMAND(1037)->TMDIFRAME:COMMAND(247)->TMDIFRAME:HANDLEEVENT(0)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,-1727722468,TSBUTTON:REDEFINE(534)->XBACKUPLITE(273)->BACKUP(103)->(b)BUILDMENU(458)->TMENU:COMMAND(461)->TWINDOW:COMMAND(1037)->TMDIFRAME:COMMAND(247)->TMDIFRAME:HANDLEEVENT(0)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,201657211,TSBUTTON:REDEFINE(534)->XBACKUPLITE(423)->BACKUP(103)->(b)BUILDMENU(458)->TMENU:COMMAND(461)->TWINDOW:COMMAND(1037)->TMDIFRAME:COMMAND(247)->TMDIFRAME:HANDLEEVENT(0)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: FONT,-871756930,TGET:NEW(323)->C_PARA(177)->(b)BUILDMENU(459)->TMENU:COMMAND(461)->TWINDOW:COMMAND(1037)->TMDIFRAME:COMMAND(247)->TMDIFRAME:HANDLEEVENT(0)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,956632141,TSBUTTON:REDEFINE(534)->C_MVSI(252)->(b)MAIN(270)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,-989524743,TSBUTTON:REDEFINE(534)->C_MVSI(262)->(b)MAIN(270)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,1141181696,TSBUTTON:REDEFINE(534)->C_MVSI(279)->(b)MAIN(270)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,1325731066,TSBUTTON:REDEFINE(534)->C_MVSI(389)->(b)MAIN(270)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,923077887,TSBUTTON:REDEFINE(534)->C_MVSI(394)->(b)MAIN(270)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,939855101,TSBUTTON:REDEFINE(534)->C_MVSI(399)->(b)MAIN(270)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,553979138,TSBUTTON:REDEFINE(534)->C_MVSI(404)->(b)MAIN(270)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,1711607032,TSBUTTON:REDEFINE(534)->C_MVSI(409)->(b)MAIN(270)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,1862601982,TSBUTTON:REDEFINE(534)->C_MVSI(414)->(b)MAIN(270)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,1074072827,TSBUTTON:REDEFINE(534)->C_MVSI(419)->(b)MAIN(270)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,939855100,TSBUTTON:REDEFINE(534)->C_MVSI(424)->(b)MAIN(270)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,84217091,TSBUTTON:REDEFINE(534)->C_MVSI(430)->(b)MAIN(270)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,855969078,TSBUTTON:REDEFINE(534)->C_FPED(309)->(b)MAIN(281)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,1191513352,TSBUTTON:REDEFINE(534)->C_CREC(322)->(b)MAIN(287)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,1661275461,TSBUTTON:REDEFINE(534)->C_CREC(328)->(b)MAIN(287)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,1275399488,TSBUTTON:REDEFINE(534)->C_CREC(334)->(b)MAIN(287)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,587533581,TSBUTTON:REDEFINE(534)->C_CPAG(261)->(b)MAIN(292)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: FONT,-888533674,C_NOTA(203)->(b)MAIN(298)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TBTNBMP:LBUTTONDOWN(596)->TCONTROL:HANDLEEVENT(1711)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->SYSREFRESH(0)->SYSWAIT(433)->C_CPAG(390)->(b)MAIN(292)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,218434910,TSBUTTON:REDEFINE(534)->C_NOTA(560)->(b)MAIN(298)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TBTNBMP:LBUTTONDOWN(596)->TCONTROL:HANDLEEVENT(1711)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->SYSREFRESH(0)->SYSWAIT(433)->C_CPAG(390)->(b)MAIN(292)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,1174736218,TSBUTTON:REDEFINE(534)->C_NOTA(570)->(b)MAIN(298)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TBTNBMP:LBUTTONDOWN(596)->TCONTROL:HANDLEEVENT(1711)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->SYSREFRESH(0)->SYSWAIT(433)->C_CPAG(390)->(b)MAIN(292)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: BMP,134548831,TSBUTTON:REDEFINE(534)->C_NOTA(575)->(b)MAIN(298)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TBTNBMP:LBUTTONDOWN(596)->TCONTROL:HANDLEEVENT(1711)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->SYSREFRESH(0)->SYSWAIT(433)->C_CPAG(390)->(b)MAIN(292)->TBTNBMP:CLICK(465)->TBTNBMP:LBUTTONUP(656)->TCONTROL:HANDLEEVENT(1714)->TBTNBMP:HANDLEEVENT(1408)->_FWH(3177)->WINRUN(0)->TMDIFRAME:ACTIVATE(990)->MAIN(317)
16/09/2013 14:07:07: ====================================================================================================

Thank you,
Oscar Ribeiro
OASyS Informática
Fwh18.02 + xHarbour 1.2.3 + Bcc72
User avatar
ORibeiro
 
Posts: 187
Joined: Mon Oct 20, 2008 6:33 pm
Location: Itu, Sao Paulo, Brazil

Re: Images of buttons disappear

Postby Antonio Linares » Tue Sep 17, 2013 9:45 am

Oscar,

yes, if you properly end them using oBmp:End() then they will not appear on the list. This is called GDI memory leaking and it is what finally breaks the app painting and make it crash.

Anyhow, if you don't clean them, FiveWin will do it for you, but that does not solve the GDI memory leaking, so you should review one by one and check where the leak comes from.

Sometimes, those leaks come from FiveWin itself, and it is something that we fix as soon as it gets detected or as soon as possible (on difficult cases), so it is very advisable to use an updated FWH version.
regards, saludos

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

Re: Images of buttons disappear

Postby ORibeiro » Tue Sep 17, 2013 10:16 am

Got Linares,

Thank you for your patience in explaining to me that matter.

Versions that you launched this year, which is the most stable? Is that my system is very large and I have no condition to test all its functions, hence, when I switch version and the problem appears on the client is not good for my image. I am using the FWH12.11 version + xHarbour 1.2.1.

Thank you.
Oscar Ribeiro
OASyS Informática
Fwh18.02 + xHarbour 1.2.3 + Bcc72
User avatar
ORibeiro
 
Posts: 187
Joined: Mon Oct 20, 2008 6:33 pm
Location: Itu, Sao Paulo, Brazil

Re: Images of buttons disappear

Postby Antonio Linares » Tue Sep 17, 2013 10:54 am

Oscar,

Today we have published FWH 13.08 which in our tests it is very very stable :-)

You can order the upgrade from www.fivetechsoft.com thanks!
regards, saludos

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

Re: Images of buttons disappear

Postby ORibeiro » Tue Sep 17, 2013 11:43 am

Ok I will update it here in Brazil with the Virtual Object where I bought Fiverwin.
Thanks,
Oscar Ribeiro
OASyS Informática
Fwh18.02 + xHarbour 1.2.3 + Bcc72
User avatar
ORibeiro
 
Posts: 187
Joined: Mon Oct 20, 2008 6:33 pm
Location: Itu, Sao Paulo, Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 94 guests