Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM Server with forms?
Message
From
18/05/2006 02:46:00
 
 
To
17/05/2006 16:15:13
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01122983
Message ID:
01123102
Views:
17
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform