Solved

Internal compiler error

Posted on 1998-08-08
4
352 Views
Last Modified: 2010-04-04
When I do a "build all" of my Delphi3.02 project, it compiles all units, except 2, and gives a fatal error "Internal Error L1086". This occurs with both IDE and command line compiling.
I cannot trace what I changed in the code since last succesful "build all".
Deleting all .dcu files, and doing a build all (which doesn't generate the .exe, due to this error above) followed by a normal "compile" generates the .exe and it seems to be OK, but, for example, the version isn't auto-incremented, etc.

Does anybody have any experiences with internal compiler errors, does there exist explanations ?
0
Comment
Question by:bome
  • 2
4 Comments
 
LVL 7

Expert Comment

by:BlackMan
ID: 1361726
This error seems to come every time a lot of units has been compiled. It's a linker error. Just do a Compile after the error and everything is Ok.
This error is gone in D4, now it's L 511 :-) (And I'm not kidding!)
0
 
LVL 1

Accepted Solution

by:
EmmDieh earned 100 total points
ID: 1361727
At:
http://www.inprise.com/devsupport/delphi/fixes/delphi4/compiler.html
this error has been described to occur because of lines like
  TInternalError = type TObject;
it is a compiler error that fixed or known.
If you don't update to D4 trace the error to the unit by commeting out part by part.
0
 

Author Comment

by:bome
ID: 1361728
Thank you for your answer. It wasn't really the "solution" for my problem, but I must admit that my actual question (last sentence)  doesn't cover my problem... So you did answer my question...

Nonetheless, your answer assured me that it was not my fault and I began to search: I moved all .pas files to another directory and one after another, copied them back, each time doing a build all.  Like that I found the unit which caused this compiler error.

In the end it was the third string in a "resourcestring" section:
----Before: (doesn't work)---
resourcestring
S_WantOverwrite= '%s already exists.'+#13#10
                +'Do you want to overwrite it ?';
S_WantSkip='Do want to skip all following existing files ?';
NoAssignmentName='(no assignment)';

----After: (does for build all)---
resourcestring
S_WantOverwrite=...
S_WantSkip=...
const
NoAssignmentName='(no assignment)';

I don't have the time to explore this, and at the moment it doesn't matter whether it's resourcestring or not.

bome
0
 
LVL 1

Expert Comment

by:EmmDieh
ID: 1361729
Hmmm. I hope you reported your findings to Inprise,
so that at least the work was of some use.
I once was lucky(?) to report a previously unknown
small "issue" to interbase and yes I got a mail back
asking for a test case.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now