472,779 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

fatal error C1001: An internal error has occurred in the compiler

My code has suddenly stopped compiling after some refactoring I carried
out last week. I am using VC8 on W2K professional
I get the following cryptic error:
Error 77 fatal error C1001: An internal error has occurred in the
compiler. c:\program files\microsoft visual studio 8\vc\include\xmemory 155
I tried commenting out blocks of code to see which line was causing the
compiler to f**k up - however I got all the way down to an empty :

#if 0
#endif

and that stopped the error from occuring in the release build, however,
when I changed to the debug build, the error suddenly appeared (before
this debug was okay and release builds failed) - now with the (totally
ridiculous empty preprocessor directive hack above), the problem seems
to have been flipped around)

Articles on MSN and Google are of no use - anybody knows how I may fix
this ?
Oct 23 '07 #1
1 9360
This is just a guess, but I've had a similar thing happen to me.

Not knowing if this is a best or even a good solution, I solved mine by
creating the project again from scratch and then importing all of the source
files into it. This is becuase I'm pretty sure my project or solution file
got corrupted. The source files however tend to stay in tact.

When I did this my porgram started compiling again. But keep in mind if you
changed any environment setting from a default project or solution you will
need to do this again (e.g., adding special resources).

And one one comment. Whenever my code has acted differently in the 'debug'
and 'release' versions it is becuase I have some fundamental bug causing
unpredictable behavior. For example, I once used the wrong 'flavor' of Timer
class in my program. As a bit of info on the subject, there are a few
classes unfortunately all called Timer class (in different namespaces
though) that look similar and seem to have the same functionalty, but differ
in that some can only be used for some operations (such as changing stuff on
forms) while other Timer class instances will cause random problems if
attempted to be used for the same thing. As I said, I 'accidentally' used
the wrong Timer class which worked in Debug but not in Release. When I used
the correct Timer class, it worked flawlessly in both Debug and Release.

Thus, you might look for some fundamental bug in your code that just happens
to work occasionally. Events and Timers and things that work in threads and
anything asynchonously, is prone to odd bugs that happen at odd times
without ease of reproducability. These are the kind of bugs to avoid at all
costs, as they can make it to the end product if rare enough!

My 2 cents...

[==Peter==]

"Anonymous" <no******@here.comwrote in message
news:d9******************************@bt.com...
My code has suddenly stopped compiling after some refactoring I carried
out last week. I am using VC8 on W2K professional
I get the following cryptic error:
Error 77 fatal error C1001: An internal error has occurred in the
compiler. c:\program files\microsoft visual studio 8\vc\include\xmemory
155

I tried commenting out blocks of code to see which line was causing the
compiler to f**k up - however I got all the way down to an empty :

#if 0
#endif

and that stopped the error from occuring in the release build, however,
when I changed to the debug build, the error suddenly appeared (before
this debug was okay and release builds failed) - now with the (totally
ridiculous empty preprocessor directive hack above), the problem seems to
have been flipped around)

Articles on MSN and Google are of no use - anybody knows how I may fix
this ?

Oct 23 '07 #2

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

Similar topics

2
by: Al Grant | last post by:
VC++ .NET 7.1 gives me an internal error from this code. It worked fine in VC++ 6.0 and other compilers. Are there any patches/SP's available for the 7.1 compiler? template<typename T> struct a...
9
by: Marco Nova | last post by:
Hello I'm using the latest version of Visual Studio 2003 version 7.1.3088, .net framework 1.1.4322 and I've some problem compiling a project, it give me the error ...
10
by: PufferFish | last post by:
Hi folks, I hope that this is the correct group for these things, apologies if not. I've got a strange compiler error. It appears to be similar to the issue described in knowledgebase...
2
by: Itjalve | last post by:
This gives me a fatal error. I'm using .NET VC7.1 and made a win32 consol app, I have no problems with VC6. Debug build. I have removed nearly all my code this is whats left. From the beginning...
1
by: BobPitbull | last post by:
When doing a "Whole Program Optimization" release build, I get the following error during LINK:- Searching \main\Binaries\lib\pc_retail\AAALibs.lib: LINK : fatal error LNK1000: Internal error...
1
by: kvarada | last post by:
Hello Experts, I am building my application on WinNT.4.0_i386_MSVC.7.1 platform. When I build the application on a stand alone machine, it builds fine. But when I build the same application from a...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.