So a likely candidate for NOT using task manager might look something like 
this:

In addition to the form running your long winded while loop, you would 
launch just before that process an MDI form with a timer that you could set 
for maybe 5 secs or so, remembering these timers run in their own process, 
so there is no load against the main process.  In your main process you 
will have your while loop include the test for a variable (let's say it's 
X) and when either condition of the while loop, that being the end of the 
process or the Variable X being set to a value prescribed in the condition 
of the while loop in an OR statement.
include in your while loop the PROCESSMESSAGE command (look it up in Rbase 
Help)
On your MDI form have a speed button that will set your Variable X to 
whatever value you have contained in the main process while loop.  
The PROCESSMESSAGE command should give enough breathing room in the process 
to acknowledge the existence of the Value of X and be able to exit the loop.

Completely untested, but I have used similar constructs in the past with 
success.


On Tuesday, August 15, 2023 at 10:32:37 PM UTC-4 Philippe Gosselin wrote:

> I found a way to disconnect users due to an end of task. You also have to 
> terminate the processes in the background for R:Base.
>
>  
>
> Best regards,
>
>  
>
> *Philippe Gosselin*
>
> General manager
>
> [email protected] 
>
> BP 3899 - 98846 Noumea – New Calédonia
>
> Tel : +687 27.62.23 <+687%2027.62.23> / Mobile : +687 77.15.76 
> <+687%2077.15.76>
>
>  
>
>  
>
> *De :* 'Karen Tellef' via RBASE-L <[email protected]> 
> *Envoyé :* mardi 15 août 2023 00:57
> *À :* 'Philippe Gosselin' via RBASE-L <[email protected]>
> *Objet :* Re: [RBASE-L] - Getting out of an infinite loop
>
>  
>
> If you cannot connect the database single-user as Razzak suggests, trying 
> ending the RBase session and then restarting your computer or just logging 
> off.  Often the computer shutdown sequence will clear the files that you 
> have "open" even tho they really aren't
>
>  
>
>  
>
> Karen
>
>  
>
>  
>
>  
>
>  
>
>  
>
> On Sunday, August 13, 2023 at 08:49:15 PM CDT, 'Philippe Gosselin' via 
> RBASE-L <[email protected]> wrote: 
>
>  
>
>  
>
> Hi,
>
>  
>
> Can you tell me how to get out of an infinite loop or a process that’s 
> taking too much time?
>
>  
>
> Right now, I end the task using windows. The problem is that when I 
> re-enter R:Base, a new user is added. How do I reset the number of users?
>
>  
>
> Thanks,
>
>  
>
> *Philippe*
>
> [email protected] 
>
> BP 3899 - 98846 Noumea – New Caledonia
>
> Tel : +687 27.62.23 <+687%2027.62.23> / Mobile : +687 77.15.76 
> <+687%2077.15.76>
>
>  
>
>  
>
> -- 
> For group guidelines, visit 
> http://www.rbase.com/support/usersgroup_guidelines.php
> --- 
> You received this message because you are subscribed to the Google Groups 
> "RBASE-L" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rbase-l/000001d9ce51%241e700170%245b500450%24%40canl.nc
>  
> <https://groups.google.com/d/msgid/rbase-l/000001d9ce51%241e700170%245b500450%24%40canl.nc?utm_medium=email&utm_source=footer>
> .
>
> -- 
> For group guidelines, visit 
> http://www.rbase.com/support/usersgroup_guidelines.php
> --- 
> You received this message because you are subscribed to the Google Groups 
> "RBASE-L" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rbase-l/231217270.632271.1692021420430%40mail.yahoo.com
>  
> <https://groups.google.com/d/msgid/rbase-l/231217270.632271.1692021420430%40mail.yahoo.com?utm_medium=email&utm_source=footer>
> .
>

-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rbase-l/6b775645-194b-4dda-bf16-c821c5d61129n%40googlegroups.com.

Reply via email to