C# Compiler generating "internal errors"

D

David Sworder

Consider the following line of code (it's not important what it does):

resp.DocItem=Relations.SelectDocItems_BySearchString(req.SearchPhrase);

It turns out that this line is in error. The property 'DocItem' should be
'DocItems.' The problem is that instead of notifying me of where the problem
has occurred, the compiler just crashes with an "internal error" (see bottom
of this message). Now if I were to write:

resp.DocItems=Relations.SelectDocItems_BySearchString(req.SearchPhrase);

...everything compiles just fine. If I were to write:

resp.DocItexxxx=Relations.SelectDocItems_BySearchString(req.SearchPhrase);

...VS.NET will show the appropriate error message and tell me where the
problem is. Only when I misspell the property name as "DocItem" do I
encounter the internal compiler error. Error information follows.

Error Information (full path name removed)
=============================
docfindrequestprocessor.cs(9,16): error CS0584: Internal Compiler Error:
stage 'COMPILE' symbol
'SworderNet.ProductAnalysis.BusinessLogic.RequestHandlers.DocFindRequestProc
essor'
docfindrequestprocessor.cs(7,11): error CS0584: Internal Compiler Error:
stage 'COMPILE' symbol
'SworderNet.ProductAnalysis.BusinessLogic.RequestHandlers'
docfindrequestprocessor.cs(7,11): error CS0584: Internal Compiler Error:
stage 'COMPILE' symbol 'SworderNet.ProductAnalysis.BusinessLogic'
docfindrequestprocessor.cs(7,11): error CS0584: Internal Compiler Error:
stage 'COMPILE' symbol 'SworderNet.ProductAnalysis'
docfindrequestprocessor.cs(7,11): error CS0584: Internal Compiler Error:
stage 'COMPILE' symbol 'SworderNet'
docfindrequestprocessor.cs(1,1): error CS0584: Internal Compiler Error:
stage 'COMPILE' symbol ''
DocFindRequestProcessor.cs: error CS0586: Internal Compiler Error: stage
'COMPILE'
error CS0587: Internal Compiler Error: stage 'COMPILE'
error CS0587: Internal Compiler Error: stage 'BEGIN'
 
D

Daniel O'Connell [C# MVP]

David Sworder said:
Consider the following line of code (it's not important what it does):

resp.DocItem=Relations.SelectDocItems_BySearchString(req.SearchPhrase);

It turns out that this line is in error. The property 'DocItem' should be
'DocItems.' The problem is that instead of notifying me of where the
problem
has occurred, the compiler just crashes with an "internal error" (see
bottom
of this message). Now if I were to write:

Its unlikely anyone here can give you much information, for some reason that
particular mispelling causes an error. Is there another symbol called
DocItem maybe, or perhaps several DocItem*(* being any number of letters)? I
would suppose this may be a lookup confusion, an attempt to determine waht
you meant going wrong, but its unlikely anyone outside of hte compiler team
could help.

Which version of the compiler are you using?
 
D

David Sworder

but its unlikely anyone outside of hte compiler team
could help.

True. I was sort of directing this post to anyone at Microsoft that
might lurk in this newsgroup. Every now and then I see posts from people
with [msft] in their name.
Which version of the compiler are you using?

I'm using the compiler that shipped with Visual Studio.NET 2003.

David
 

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