Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple instances of VFP .DLL - all share open tables?
Message
 
To
22/06/1998 10:33:50
Alastair Cameron
Farpoint Software Development Limited
Edinburgh, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00110547
Message ID:
00110828
Views:
128
>Hi.
>
>I only recently realised that multiple instances of a VFP 5 ActiveX automation server that you build as a DLL (and for all I know,.EXE) share the same data environment (i.e. open tables, databases).

If you're running multiple instances of a DLL server they share the
same runtime. Yes, they get different copies of the class data, but
many globals including the master datasession are shared.

EXE servers do not have this problem as each instance gets its own copy
of the runtime. That is if you build the server as a Single Instance
server. Multi-Instance servers share a single copy between many objects
and again you may end with data session interaction between instances.

Really, the only safe way to get separate servers is to use
Single Use EXE servers (potentially iwth a pool manager to simulate
simultaneous access).
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform