Solved

VB6 PROGRAM GETTING TO LARGE ???

Posted on 2007-03-30
6
152 Views
Last Modified: 2010-04-30
Using VB6 writing a program wich is growing, and keeps growing, and still adding code.
As a 'old' dos-programmers I was used to the fact someday its big, to big. Then I had to split my progam in pieces and chain them.
Now I don't have clue how VB handles memory, ny program runs on a 1 giga mem. system, will I run in a problem some day that the
program will be to big?. If so I have allready to start considering now to split, like qbasic-dos.
I do use (offcourse) a lot off forms with all their work and functions, wich are called by the user from the main-form/module.
Can I go on adding forms to the main-program?,  or run in error?
So I like to know how VB6 handles this, and if this ok to do.
0
Comment
Question by:BIAPRO
  • 3
  • 3
6 Comments
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 500 total points
ID: 18824996
These days I don't think you have much to worry about. Just how big is the EXE file?

Kevin
0
 

Author Comment

by:BIAPRO
ID: 18825035
1.17 MB and still growing
Jack
0
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 18825076
That is not big at all. When you get to around 10 or 20 MB we can talk.

The only "memory" issues I have ever run into (and I have built some large apps) are recursive calls - before you know it you have blown the stack. But you will see that right away.

No worries, mate! Code away!

Kevin
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:BIAPRO
ID: 18825114
Ok,  by recusive calls you mean like in Qbasic gosub/return??,  or just call from a private sub another private sub?
Jack
0
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 18825202
A recursive call is when you call the same routine from within that routine. This technique is often used in sort routines or routines that parse directories. It can also occur if an event handler generates more events that trigger that same event hander.

Kevin
0
 

Author Comment

by:BIAPRO
ID: 18825388
Ok thats not happening a lot,
thanks for the lessons
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question