Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COM Server with forms?
Message
De
18/05/2006 02:46:00
 
 
À
17/05/2006 16:15:13
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01122983
Message ID:
01123102
Vues:
15
>If I call READ EVENTS in a server method, I don't return to my app until CLEAR EVENTS is called.
I guess you are calling a COM method and therefore the original app waits until the whole method returns.

>I need a way to asynchronously open a form on the server and allow the server to process user input.
>Can I do this?
Since the form should be in a COM exe, it should have it's own thread.
So basically the question is to start and later synch again. Sionce it already is implemented as COM, I'ld try starting the COM-Form via timer, which is enabled in the method called by the original process. Another sometimes easier way is to have timers in both apps and only set certain flags while communicating and checking those flags in the next timer firing sequence. This returns quickly (so you can work in the original process' thread again) and starts off the second form in the next timer interval.

From tabula rasa I'ld implement it as simply another exe which communicates, but I don't have enough info about other needs of your app to second-guess.

HTH

thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform