Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Interrupting/Force Shutdown of Automation Server
Hope someone can help, a lot of great minds out here.
I have a dilemma, On a client PC, I issue a
loServer = CREATEOBJECTEX("clsid","server")
This creates the server ok, then I call the process to invoke. This process does specific processing looping through a primary table of "invoices" to review/analyse. On the client side, I want to trap the escape key, and if so, set a property on the loServer to flag to abort the process. Ex:
on escape loServer.SetProp( "myflagproperty", .T. )
loServer.StartProcess()
on escape && when finished
Problem:
The function SetProp() works ok as I have to set other properties before calling the main process. When I try to hit the escape key, it basically ignores the ON ESCAPE call because the "loServer" process is still running. Almost like it can't interrupt the process.
Does anyone have another work around? I've even thought of creating a temp file that the server side process would look for, but again, I can't interrupt the server process.
TIA
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