?
Solved

VB6 editor size limitations and work arounds

Posted on 2006-11-17
4
Medium Priority
?
195 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 1000 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

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…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month15 days, 1 hour left to enroll

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