Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
More on Cancel & Process stopping
Ok, I seem to be reading a bunch of requests for information to stop a process. I have the same dilemma but, as mentioned here, need to limit use of DOEVENTS because of the time overhead.
I have a form which accepts parameters and has a button with .Cancel = .T. It also has a button to kick off a form method which instantiates an object which runs a large time consuming process. I need to be able to let a user hit ESC or (the cancel button is currently not visible but can be if needed) click the button to halt the process. The code is something like this.
* Some form method
LOCAL loProcess
loProcess = NEWOBJECT(.......)
loProcess.DoProcess()
I need to be able interrupt the process. ESC does not register until control is returned to the form which is not acceptable. The loProcess object needs to be able in shut down immediately.
Any ideas will be greatly appreciated.
Thanks,
Steve Despres
PS And I apologize to UT members for not showing up much lately.
I'll try to be a bit more regular.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement