Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multi-users with COM server
Message
 
 
À
31/05/2002 09:11:47
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00660903
Message ID:
00663476
Vues:
17
>I have PUBLIC varibles in my code
>For the first access to the server COM, there's no problem
>For the second access (simultaneous), there's an error :
>'Variable xxx not found'
>I try to eliminate all my PUBLIC variables and it works...
>So, PUBLIC variables are global for all access to the
>COM server or not ?

Arnold,
Truthfully, I can't reproduce your error using VFP 7 and VB 6 as my test environment so I don't know exactly what's going on. Even public variables should be scoped to the memory space they are instantiated in and should not affect other things. IAC, go to Project - Project Info - Servers. Try changing the Instancing from MultiUse to Single Use. This may correct your problem with globals.

BTW, I recommend avoiding Publics if you can. A privately scoped variable created at the top of your program stack would mirror the same behavior.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform