Solved

VB6 editor size limitations and work arounds

Posted on 2006-11-17
4
190 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 AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

770 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