Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One client and two servers
Message
De
22/02/2006 10:16:31
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
22/02/2006 08:36:32
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01098071
Message ID:
01098106
Vues:
10
Mark,

I ran into this problem doing an interactive voice response system a few years ago. Since vfp is single threaded, it can only respond to one com object at a time. I ended up having to write responses to a dbf file and then have a process scan the dbf on a regular basis and take appropriate action.

>I have a client program that creates two remote servers. Both servers are given a reference to the client for callbacks.
>
>oClient.Server1 = CREATEOBJECTEX('{...}', 'comp1')
>oClient.Server2 = CREATEOBJECTEX('{...}', 'comp2')
>oClient.Server1.mGetClient(oClient)
>oClient.Server2.mGetClient(oClient)
>
>*!* Callback from the server1
>oClient.mCallBack()
>
>*!* Callback from the server2
>oClient.mCallBack()
>
>What would happen when both servers do the callback in the same time?
>Am I at any danger of it?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform