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?)
Printable View
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?)
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.
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
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.
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.Quote:
Originally Posted by Hack