Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I do this with MTDLL
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00846025
Message ID:
00846043
Views:
26
At the same time each client using MTDLL may instantiate another COM EXE object from it, and the PUBLIC variable declared there will be shared between all the clients. I demonstrated so called VFP Instant Messenger based on this principle at my session at San Diego DevCon 2001.


>From the vfpsp3 special enhancements help(vfpsp3.chm):
>"the Vfp6t.dll run time also eliminates conflicts in accessing global data from multiple threads by giving each apartment its own copy of global data. The Vfp6t.dll uses thread local storage to give each class instance its own set of data. This means that a variable you declare as PUBLIC is global only to the thread; each thread has an instance of the variable"
>However, if you really want to do this, just use a dbf...
>
>>If two clients instaniciate the same MTDLL, can one client's change to a server's property be read by the other client?
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform