Solved

VB6 PROGRAM GETTING TO LARGE ???

Posted on 2007-03-30
6
150 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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 lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

743 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

12 Experts available now in Live!

Get 1:1 Help Now