Click to See Complete Forum and Search --> : Global Variables


gary0314
March 13th, 2001, 10:27 AM
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.

Johnny101
March 13th, 2001, 02:57 PM
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

sing12
March 14th, 2001, 07:35 AM
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.