Information générale
Catégorie:
COM/DCOM et OLE Automation
>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
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