Solved

VB6 PROGRAM GETTING TO LARGE ???

Posted on 2007-03-30
6
153 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
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

830 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