>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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao