CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2001
    Posts
    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.



  2. #2
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    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

  3. #3
    Join Date
    Mar 2001
    Posts
    31

    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
  •  





Click Here to Expand Forum to Full Width

Featured