Results 1 to 6 of 6

Thread: VB 6.0: Memory for varables; How much is left?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2006
    Posts
    172

    VB 6.0: Memory for varables; How much is left?

    Is there a way to tell how much memory you have left for declaring variables? (How many more variables can be declared before running out of memory?)

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: VB 6.0: Memory for varables; How much is left?

    No, All you have for variables/data is 64K. Why woul dyou need this kind of information anyway? I have never heard of anyone needing to know how much memory is available at coding time... Especially since each users computer will have different memory configurations anyway.

  3. #3
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: VB 6.0: Memory for varables; How much is left?

    In case anyone else misunderstands, as I did earlier, the 64K refers to the number of Identifiers eg (Procedures, Variables, Constants etc.) not the actual amount of memory used by those Identifiers. If you get to the point where you've defined 64K Identifiers then I'd suggest that the application should be split into two or more distinct programs.

    There are other VB6 limitations that are fully decsribed here:http://msdn2.microsoft.com/en-us/lib...95(VS.60).aspx

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 2006
    Posts
    172

    Re: VB 6.0: Memory for varables; How much is left?

    I just wanted to know how far I could push it befor I started getting out of memory errors.

    Thanks Doogle, looking at it now.

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB 6.0: Memory for varables; How much is left?

    Just out of curiousity what kind of app are you building that prompted you to wonder?

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Oct 2006
    Posts
    172

    Re: VB 6.0: Memory for varables; How much is left?

    Quote Originally Posted by Hack
    Just out of curiousity what kind of app are you building that prompted you to wonder?
    That A* pathfinding thinggy I've been working on and I never really read all the limitations of VB6.

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