473,659 Members | 2,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\xm emory 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 9512
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\xm emory
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
1354
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 { char d; T o; }; #define A(T) (sizeof(a<T>) - sizeof(T)) template<int N> struct AS { char x; }; template<typename T> AS<A(T)> AF(T const &); #define AE(E) sizeof(AF(E)) int main(int n, char **) { return AE(n); }
9
15305
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 c:\build\main\.....\methodeInc.h(36) : fatal error C1001: INTERNAL COMPILER ERRO (compiler file 'msc1.cpp', line 2701) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more informatio I was able to...
10
3268
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 article 320004 except that particular problem was
2
2949
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 the template was defined in a .h file, but that has no effect, same error. I have seen when searching for fatal error that there are some problems with templates and optimization, but nothing as simple like this. I'm i doing something wrong?
1
5865
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 during LIB::Search Version 7.10.3077 ExceptionCode = C0000005
1
3764
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 linux box using rsh it gives me the errors below Microsoft (R) Development Environment Version 7.10.3077. Copyright (C) Microsoft Corp 1984-2001. All rights reserved. ------ Build started: Project: SigComp, Configuration: Release Win32 ------...
0
8427
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8626
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6178
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2749
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.