FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Parameter for Timeout
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Parameter for Timeout
Posted: Thu Sep 21, 2023 11:26 AM

Hello,

What problem arises when someone leaves the program open that we have to respond to?

However, a timeout won't help here if the user is no longer in front of the computer. You'll always have to close the program automatically, but you won't know whether the data needs to be saved or not.

I think we need to design the programs like on the web, where it doesn't matter if it remains open (stateless).

But it does require extra effort and a change in thinking. I believe that in the future you won't be able to simply use a record lock or even a file lock.

It would be beneficial, especially considering mod harbour, to have a standardized function: buffer and then check before saving if the buffered data is still current.

Best regards,

Otto

Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: Parameter for Timeout
Posted: Thu Sep 21, 2023 11:43 AM
What problem arises when someone leaves the program open that we have to respond to?
Probably none, but it is just a good habbit of closing a program.

I will surely use this code to force the program to close. (give them enough time offcource) Non saved data is the responsability of the user. They need to save and close.
Marc Venken

Using: FWH 23.08 with Harbour
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
Re: Parameter for Timeout
Posted: Fri Sep 22, 2023 02:36 AM
Probably none, but it is just a good habbit of closing a program.

I will surely use this code to force the program to close. (give them enough time offcource) Non saved data is the responsability of the user. They need to save and close.
+1

Ramesh Babu

Continue the discussion