Solved

VB6 editor size limitations and work arounds

Posted on 2006-11-17
4
189 Views
Last Modified: 2013-12-26
I have an application that consists of about 20 ASP pages that I convert to VB and then compile it to a DLL.
The size of the files have grown and now the converted code is 90k lines. When I try to paste this to my VB6 editor I get an erroer message "Out of Memory". I can paste approx68k of lines withourt a problem.

Is there a work around to this or is there a way of splitting the code to a couple of modeules and then being able to complie to s single DLL without the need to do a lot of complex referencing in my current functions
0
Comment
Question by:Geethal_Fernando
4 Comments
 
LVL 12

Expert Comment

by:jkaios
ID: 17976990
Yes, try to break your code into smaller pieces, like sub routines and modules.
0
 
LVL 9

Expert Comment

by:pradapkumar
ID: 17977281
try to increase your virtual memory and try this again.
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 250 total points
ID: 17977865
If it is all Module code, as opposed to Forms and Class, and unless you have labelled any of the procedures as Private, you can create several modules and put some of the procedures in each. It won't matter to the compiler which module thay are in, but, for easier maintainability, you might like to take the opportunity of keeping associated groups of procedures in their own modules.
0
 

Author Comment

by:Geethal_Fernando
ID: 17977910
I put it in to a few separate modules as suggested and changed all the private subs and functions to public to make it work
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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

920 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