Code size limit or bug?

J

John Smith

I'm using VS.NET 2003. One of the modules in my VB.NET project has over
10,000 lines of codes. If I Build solution, the compiler sometimes hangs on
that project at "Performing main compilation...". I have to close the IDE
with an exception (prompted for send report to MS). This problem happens on
my other computer as well.
 
S

Stu Smith

Sahil Malik said:
There are more reasons than just the IDE to break up the 10,000 lines
module.

Usually, but not always. One assembly in my project is an auto-generated
data-access layer, which provides a mapping between our object-relational
system and typed/named access for the business objects to use. It's
currently weighing in at about 70,000 lines (around 300 ish classes). For
auto-generated stuff like this, it's too much of a hassle to generate a
source file for each class (it doesn't have to be edited after all), so we
just generate chunks of around 20,000 lines (to avoid the 32,000 or 65,000
or whatever C++ line limit).

Stu
 
J

John Smith

Besides ASM, I never compiled anything else in commandline. How to
commandline compile the VB.NET dll exactly?
 
J

Jon Skeet [C# MVP]

John Smith said:
Besides ASM, I never compiled anything else in commandline. How to
commandline compile the VB.NET dll exactly?

Bring up the command prompt which is one of the shortcuts under the
VS.NET 2003 menu, then type

vbc

To see the various command line options etc that the VB.NET compiler
can take.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top