Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple instances of VFP Server DLL shares all open tab
Message
 
To
22/06/1998 10:36:14
Alastair Cameron
Farpoint Software Development Limited
Edinburgh, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00110548
Message ID:
00110829
Views:
13
>x = create("myvfpserver.class)
>x.opentables
>
>and then do:
>
>y = create("myvfpserver.class)

This is not officially supported by VFP 5.0. The reason is that that VFP
is not thread safe and corrupts global data between sessions. You may
remember my advice a while back to not run VFP 5 components in MTS -
this is why. I think this didn't even work in the original VFP5 versions.
Creating a second instance would create an error - I think that was
changed in one of the service packs (SP3 I'm guessing).

VFP 6.0 addresses this problem, although not very well. You can create
multiple instances in VFP 6 and keep things private. But, you can't
call methods of your server simultaneously - they block while another
call is active and are essentially serialized.

+++ Rick ---
+++ 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
Reply
Map
View

Click here to load this message in the networking platform