Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WSH Mania
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00346623
Message ID:
00350617
Views:
36
>>I don't have your huge experience with web apps. Can you explain why it isn't scalable and what other
>>problems may arise, please?
>
>Anything that is loaded as an Application object var is essentially the same as a global var, which means it's shared by all users and pages in a Web site. If you have an object and two pages want to access that object it gets queued. If the object is not free threaded IIS will block all access to any other COM object until the call completes. If it is free threaded it will make the call and add implicit Application.lock/Unlock's around the object access.

Assuming that WSH is free threaded and this global/Application object is never used for anything else than to
keep the WSH loaded (so, no problem with the simultaneous access): Is it still a bad idea?

>Basically you should avoid Application object use just like you avoid using globals in a VFP application. Use only when absolutely no other way is available to share data.

I understand this as well as that having global vars in a web app that may run on multiple web servers simultaneous is
a bad idea. But I never intended to use that global object.

Vlad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform