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.
Printable View
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.
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
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.