473,320 Members | 2,073 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Code size limit or bug?

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.
Jul 21 '05 #1
6 1603
There are more reasons than just the IDE to break up the 10,000 lines
module.

- Sahil Malik
You can reach me thru my blog http://www.dotnetjunkies.com/weblog/sahilmalik

"John Smith" <so*****@microsoft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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.

Jul 21 '05 #2

"Sahil Malik" <co*****************@nospam.com> wrote in message
news:OH**************@tk2msftngp13.phx.gbl...
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

- Sahil Malik
You can reach me thru my blog http://www.dotnetjunkies.com/weblog/sahilmalik
"John Smith" <so*****@microsoft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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.


Jul 21 '05 #3
Can you commandline compile it and reference the dll instead?

- Sahil Malik
You can reach me thru my blog http://www.dotnetjunkies.com/weblog/sahilmalik

"Stu Smith" <st*****@nospam-digita.com> wrote in message
news:eN*************@TK2MSFTNGP09.phx.gbl...

"Sahil Malik" <co*****************@nospam.com> wrote in message
news:OH**************@tk2msftngp13.phx.gbl...
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

- Sahil Malik
You can reach me thru my blog

http://www.dotnetjunkies.com/weblog/sahilmalik

"John Smith" <so*****@microsoft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
> 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.
>
>



Jul 21 '05 #4
Besides ASM, I never compiled anything else in commandline. How to
commandline compile the VB.NET dll exactly?
"Sahil Malik" <co*****************@nospam.com> wrote in message
news:Os*************@TK2MSFTNGP09.phx.gbl...
Can you commandline compile it and reference the dll instead?

- Sahil Malik
You can reach me thru my blog
http://www.dotnetjunkies.com/weblog/sahilmalik

"Stu Smith" <st*****@nospam-digita.com> wrote in message
news:eN*************@TK2MSFTNGP09.phx.gbl...

"Sahil Malik" <co*****************@nospam.com> wrote in message
news:OH**************@tk2msftngp13.phx.gbl...
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

- Sahil Malik
You can reach me thru my blog

http://www.dotnetjunkies.com/weblog/sahilmalik

"John Smith" <so*****@microsoft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
> 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.
>
>



Jul 21 '05 #5
John Smith <so*****@microsoft.com> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #6
The only downside would be; probably you wouldn't be able to debug the auto
generated code though. Atleast not easily.

- Sahil Malik
You can reach me thru my blog http://www.dotnetjunkies.com/weblog/sahilmalik

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
John Smith <so*****@microsoft.com> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: steve | last post by:
I am setting up a huge database in mysql, and I get the above error in Linux. I believe it is related to the size of one of my tables, which is 4,294,966,772 bytes in size. Can someone help. How...
2
by: rked | last post by:
I get nameSPAN1 is undefined when I place cursor in comments box.. <%@ LANGUAGE="VBScript" %> <% DIM ipAddress ipAddress=Request.Servervariables("REMOTE_HOST") %> <html> <head> <meta...
2
by: Kums | last post by:
What is the maximum permissible size of a database? Is there any limitation. What is the maximum # of tablespace's allowed in a database? Thanks for your response.
8
by: Peter Ballard | last post by:
Hi all, I've got a C program which outputs all its data using a statement of the form: putchar(ch, outfile); This has worked fine for years until it had to output more than 2GB of data...
4
by: vigori | last post by:
I have an application that send a file to a web service (I built both the application and the web service) I set the max file size via web.config of the web service: <httpRuntime...
5
by: Claudio Grondi | last post by:
I have just started to play around with the bsddb3 module interfacing the Berkeley Database. Beside the intended database file databaseFile.bdb I see in same directory also the __db.001...
8
by: Ron | last post by:
Hi all, How do I determine the size of the tables I'm using? I looked under properties and it's not there. The book I just browsed said table is limited to 1GB. How do I find out what size my...
5
by: Daniel | last post by:
c# string size limit? length of string limit?
3
by: Salad | last post by:
I'm asking this for curiosity's sake. Is there a code module size limit? I looked at Access Specifications in help and didn't notice a code limit size. For some odd reason I was under the...
6
by: shawno | last post by:
Hi, We're running DB2 v8.1 on a windows platform and have a database that is quite large. It basically contains one table with a BLOB field (each blob is a zip file, maybe 500K to 1MB), and...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.