error CS0583: Internal Compiler Error on change of namespace

  • Thread starter Thread starter Rob Agar
  • Start date Start date
R

Rob Agar

hi all

Another compiler error for you - is there a workaround for this one?

error CS0583: Internal Compiler Error (0xc0000005 at address 5315C743):
likely culprit is 'BEGIN'.

It happens when I try to compile after changing a particular class's
namespace. If I change the namespace back again, it goes away.

Any ideas? btw this is .net 1.0 (ie compiling with msvc .net 2002)

cheers,

Rob
 
Rob,

Do you have any other references in the code to the class? Errors like
this should not occur, and if it is a valid bug, should be reported.

Can you give an example?
 
hi Nicholas
Do you have any other references in the code to the class?

No, it's a class in a class library which isn't referenced anywhere else in
the library
Can you give an example?

Well, the start of the file is as follows:

using System;

using System.Diagnostics;

using System.Text;

namespace Delve.Util

{

public class TraceLog

{

....



If I change the namespace (I want to change it to Delve.Diagnostics), it
throws the internal compiler error. Also, I've found that if I select
'rebuild' rather than 'build', it compiles. Oddly enough the error
reappears if I ever change it back to Delve.Util, recompile and change it
again, but not if changed to anything else.



btw, what's the difference between 'build' and 'rebuild'?

cheers,

Rob
 
Rob,

I believe that build will only build the project if it is not up to
date. Rebuild will force a rebuild of the project from the ground up,
regardless of the state.

If the project compiles fine with a rebuild, then it should be ok when
building, assuming you don't change the namespace.

Hope this helps.
 
Back
Top