Click to See Complete Forum and Search --> : Out of Memory Insufficient Variable Space.


Kieran O'Connor
March 31st, 1999, 06:41 AM
Hi there....


Sorry if this question has already being posted or even answered.


Question :


When trying to run a Vb3.0 project an error occured stating that my project was out of memory and had insufficient variable space. However upon checking my resource meter and my harddrive for space I found there was quite sufficient space available for the project to run comfortable. If anyone can aid me in this problem it would be much appreciate as this is matter of urgency.


Many Thanks


Kieran.

Lothar Haensler
April 8th, 1999, 08:13 AM
MSDevnet article Q112860 contains lots of valuable information concerning "How to Optimize Memory Management in VB 3.0 for Windows" and lists lots of internal limitations in VB 3.

Excerpt:
"Module Name Table
Each form and code module has a single Module name table that is up to 64K in size. The Module name table includes:

The actual text for the name of each module-level and local variable name.
The actual text for the name of each module-level DLL Sub or Function procedure declaration.
The actual text used for line numbers and line labels.
As with the Global name table, an additional four-byte overhead for each of the above listed module-level names in the Module name table as well as about 100 bytes overhead for the hash table for these module-level names.

NOTE: As with the Global name table, when your project is made into an .EXE file, most of the Module name table is not needed. "