Solved

VB6 PROGRAM GETTING TO LARGE ???

Posted on 2007-03-30
6
151 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

919 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now