|
-
March 13th, 2001, 11:27 AM
#1
Global Variables
We develop vb 6.0 COM componets for use on the internet running under IIS and MTS. Would having global variables in .bas files cause any problems when 17000 concurrent clients are hitting the web site, in a multi-user type environment?
Thanks.
-
March 13th, 2001, 03:57 PM
#2
Re: Global Variables
Yes, it would. We had a situation not long ago, with only a few hundred concurrent users' variable data being "shared". We changed the public, global vars to private and just passed, byval everything - the problem went away.
just a thought,
john
John Pirkey
MCSD
http://www.ShallowWaterSystems.com
http://www.stlvbug.org
John Pirkey
MCSD (VB6)
http://www.stlvbug.org
-
March 14th, 2001, 08:35 AM
#3
Re: Global Variables
yes it does matter at sometimes none of them execute.it better to use them as private if in functions use them seperately in each function.
remember to use byval in functions.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|