473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Need Tutorial on Memory Usage VB5 & 6

Can someone point me at a tutorial or other reference on how VB 5 &/or 6
consumes memory and what its limits are? [ The built-in Help doesn't seem to
cover this.]

I have a program in VB5 that has been around a while and grown quite a bit.
I am starting to run into compile-time errors like "Too many local dynamic
variables" I fixed that one by re-declaring some variables as Static but I'm
shooting in the dark.

Where can I find the various ways VB consumes memory, and what limits it
runs into?

And as a general question - is VB6 the same as VB5 in this regard? Or, is it
more 'robust'?

Thanks a lot!

Bob Kochem
Jul 17 '05 #1
1 3893
> And as a general question - is VB6 the same as VB5 in this regard? Or, is it
more 'robust'?


The only thing in this direction I encountered is a limitation of the
function length, to about 64KByte. Well, that was a very special case.
The projects I work on are pretty big (several MB of source code), but
rather well partitioned in controls, many modules of all kinds, and
mostly structured with lots of subs and functions, too. The maximum
number of local variables I ever used must be around 30. The maximum
number of module-global variables maybe 100. Loads of constants, types
and enum declarations, which are mostly public. Ah, yes, there is a
limitation to the complexity of an If statement, mine had more that 20
ANDs before the compiler complained.
There are some problems once a project group gets that large (e.g. I
can't build the whole group from VB anymore, I have to do it on
command line), but nothing like you mentioned.

Robert
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: lebo | last post by:
I'm experimenting with using Python as a very low resource usage systems management agent. Currently the best I'm getting is about a 2.4MByte base usage (python interp only) and with application,...
4
by: lebo | last post by:
Hi I'm trying to understand how Python handles memory usage and dynamic object loading and unloading. Problem to solve? Build a very low memory footprint (non-GUI) Python application for...
5
by: Justice | last post by:
Currently I'm doing some experimenting with the XMLHTTP object in Javascript. Now, the XMLHttp object is asynchronous (at least in this case), and the following code causes a significant memory...
2
by: tomvr | last post by:
Hello I have noticed some 'weird' memory usage in a vb.net windows app The situation is as follows I have an app (heavy on images) with 2 forms (actually there are more forms and on starting...
6
by: Tom | last post by:
We have a VERY simple .NET C# Form Application, that has about a 23MB Memory Footprint. It starts a window runs a process and does a regular expression. I have done a GC.Collect to make sure that,...
3
by: Ian Taite | last post by:
Hello, I'm exploring why one of my C# .NET apps has "high" memory usage, and whether I can reduce the memory usage. I have an app that wakes up and processes text files into a database...
4
by: NotGiven | last post by:
setting up LAMP server. on old server with single Intel PII 450 MGHz, 64 MG Ram and two 9.1 GB Hard drives. How much RAM do I need to run MySQL efficiently?
6
by: zissop | last post by:
Hello I have a strange situation with my ASP.Net applications running on Windows 2003 Server x64. As soon as they get instantiated (a visitor hits a page). the virtual memory they allocate goes to...
1
by: Jean-Paul Calderone | last post by:
On Tue, 22 Apr 2008 14:54:37 -0700 (PDT), yzghan@gmail.com wrote: The test doesn't demonstrate any leaks. It does demonstrate that memory usage can remain at or near peak memory usage even after...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.