Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DCOM/Remote Automation Problem
Message
De
15/09/2000 11:17:31
 
 
À
15/09/2000 09:59:22
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00401852
Message ID:
00416920
Vues:
35
Neil,

> just a quick question about state. If the client creates a server object, and retains a reference to that object, isn't state maintained between method calls to the server? Why would the server lose the context (any tables open, SETs put in place?

This goes to my previous comment about designing for scalability. Yes, in some cases you can maintain state, but it depends on how you set up your automation component. For a DCOM EXE, you would need to indicate in the project manager (Project Info/Servers) that you want to build it with Single-Use Instancing, so each client instantiation loads up another copy on the server.

With dll's running in MTS, you can avoid calling the SetComplete, I believe, and keep the state of your client instance alive.

Both of these obviously could have big implications for performance and scalability, since they directly impact server resources, and therefore are not usually recommended.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform