Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More on Cancel & Process stopping
Message
De
10/07/2000 03:02:57
Walter Meester
HoogkarspelPays-Bas
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00389492
Message ID:
00390101
Vues:
10
Hi Steve,

>One thing is eluding me though, I'd love for this solution to work when I manage to get CreateObjectEX() working and the process is loaded into server memory rather than client. Is CHRSAW() or even MDOWN() going to work then? I haven't put this code in place yet, but will be this eve. In my search for a solution, I'm looking for the ability to be able to have a process running independently stop also.

You're trying to create an interuptable process in a DCOM object ? I don't think this solution is going to work. You may consider the use of timers on the server object to achieve asynchronous processing.

I've never done this before but the following might work.

Create a DCOM scheduler object and a DCOM processing object. The first one does nothing more than scheduling the processing jobs, the second executes them.
                        ------------------
                       | Your Application |
                        ------------------
                                |
                                |
                        ------------------
                       |    Scheduler     |
                        ------------------
                                |
                                |
                        ------------------
                       |  Process object  |
                        ------------------
Your application cals the sheduler, which in fact does nothing more than schedule or discard processjobs. The scheduler itself has a reference to the processing object (fires the batched processes with the help of timers). During a process the process object checks if the process is canceled within the processloop. Most likely you'll batch the process commands into a table, so you can check very easely if a process should be aborted or not.

Just think of it as the windows printer spooler.

Good luck,

Walter,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform