FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour About CheckRes()?
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
About CheckRes()?
Posted: Mon Aug 31, 2015 07:43 AM
Hi,

I want to use CheckRes() function but there is no result in checkres.txt.

Is there any compiler switch for it?

I use Harbour latest 2015.07 for vs2013 and fwh 1507.


Code (fw): Select all Collapse
// program startup
SetResDebug( .T. )
..
..
// At the middle of the program ---- (Not end) ... it should be some lines.
   
FErase( "checkres.txt" )
CheckRes()
WinExec( "notepad checkres.txt" )


Result is
Code (fw): Select all Collapse
31/08/2015 10:40:58: C:\PrgW\Icra\IcraW.exe -- ====================================================================================================


Any comments?
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: About CheckRes()?
Posted: Mon Aug 31, 2015 08:03 AM

Hakan,

It means that your app is properly releasing all the resources :-)

When checkres.txt is empty then it means all is ok

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: About CheckRes()?
Posted: Mon Aug 31, 2015 08:12 AM
Antonio Linares wrote:Hakan,

It means that your app is properly releasing all the resources :-)

When checkres.txt is empty then it means all is ok


You are right if i call at the end of my application.

I call it in the one account card of my application. at least 2 windows should be. is there any condition to add object ids into aResources array.

I have suspect there are some resources.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: About CheckRes()?
Posted: Mon Aug 31, 2015 08:16 AM

Hakan,

> I have suspect there are some resources

Why do you think so ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: About CheckRes()?
Posted: Mon Aug 31, 2015 09:17 AM

Hi Antonio,

There are some procedures that works wery well. But after 1-2 hours from starting application, these procedures does not work. There is not any error.

User exits the application and try to same procedures. The problems goes on.

User reboot the computer, run application. There is no problem for 1-2 hours.

That is the problem.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: About CheckRes()?
Posted: Mon Aug 31, 2015 09:32 AM

Hakan,

You can use SetResDebug( .T. ) and CheckRes() in just a portion of your app

Do you allocate memory in some way in your app ?

Do you manage bitmaps, fonts, etc ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: About CheckRes()?
Posted: Mon Aug 31, 2015 09:35 AM
Also, use Windows task manager to review the handles that your app is using:

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: About CheckRes()?
Posted: Mon Aug 31, 2015 09:57 AM
Antonio Linares wrote:Hakan,

You can use SetResDebug( .T. ) and CheckRes() in just a portion of your app

Do you allocate memory in some way in your app ?

Do you manage bitmaps, fonts, etc ?


I dont allocate any memory in my application.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06

Continue the discussion