Can anybody explain an Internal Compiler Error where the "likely culprit is 'EMITIL'"  
Author Message
GinaInDenmark





PostPosted: Visual C# General, Can anybody explain an Internal Compiler Error where the "likely culprit is 'EMITIL'" Top

I am using csc.exe to build a very large project. It contains over 1700 source files which average about 300K in size per file. After letting the build run for over an hour, I invariably get an internal compiler error such as the following:

error CS0583: Internal Compiler Error (0xc0000005 at address 5E3A2BE0): likely c
ulprit is 'EMITIL'.
An internal error has occurred in the compiler. To work around this prob
lem, try simplifying or changing the program near the locations listed below. Lo
cations at the top of the list are closer to the point at which the internal err
or occurred. Errors such as this can be reported to Microsoft by using the /erro
rreport option.

Does anybody have any information on this 'EMITIL' error

Thanks!



Visual C#1  
 
 
Indian Ocean





PostPosted: Visual C# General, Can anybody explain an Internal Compiler Error where the "likely culprit is 'EMITIL'" Top

Hi,

Please look at the lines compiler shows where the possibility of problem,
Try to change those lines of code a bit in other way, if it can solve problem.
See the post, http://www.thescripts.com/forum/thread236070.html
This has similar problem and they got it solved so it may have some trail and error based solution.

If not solved then this would be a but in .Net 2.0...

Please see the links found in googling, if it can help you somehow,
http://www.google.co.in/search hl=en&q=error+CS0583%3A+Internal+Compiler+Error+%280xc0000005&meta=

Please report it to Microsoft, if they can help in it,

HTH,



 
 
James Curran





PostPosted: Visual C# General, Can anybody explain an Internal Compiler Error where the "likely culprit is 'EMITIL'" Top

"EMITIL" means "Emit IL" or "Emit Intermediate Langage", IL being the code that's actually put in assemblies.

The first think to note that Internal Compiler Errors (ICEs) are never "really" your fault. You probably hit some limit in the compiler, that Microsoft never planned on someone hitting, and therefore they didn't catch the error and fail more gracefully (with a more precise error message)

When you say "a large project" do you mean this is all going into one big assembly You may want to try breaking it up into seaprate projects (or more projects if you already have)



 
 
Thomas-W





PostPosted: Visual C# General, Can anybody explain an Internal Compiler Error where the "likely culprit is 'EMITIL'" Top

Hello,

I had a similar error, where the compiler crashed, and I got all sorts of weird compiler messages (starting with the "EMITIL" one) in the compilation output.

Turns out, the culprit that was **** the compiler was this block of code:


19 const SqlParameter[] parameters = null;
20 return ExecuteDataReader(procedureName, parameters);


Changing line 19, so as not to use a constant for the array took care of the problem.

Regards,

Thomas