Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/Delphi/Error Recovery    [ Add a report in this area ]  
Report #:  22744   Status: Closed
Delphi Internal error F2084 Interner Fehler: AV21FA43BA-R00000015-0 (Code.Completion and Break outside loop)
Project:  Delphi Build #:  10.0.2151.25345
Version:    10.0 Submitted By:   Marc Wetzel
Report Type:  Basic functionality failure Date Reported:  12/23/2005 4:03:42 AM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   238067
Resolution: Fixed (Resolution Comments) Resolved in Build: : 10.0.2277.33714
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
4.00 out of 5
Total Votes: 1
Description
The compiler does not always detect a
"BREAK outside loop error" correctly, if code-completion was used inside the loop.

This is somehow nasty, as while editing your code
inside the WHILE-Loop (e.g. add a end; in the wrong place)
you dont get the correct error message.
I searched some time for this error, moving code
up and down :)

It may have something to do with the partial compiling used
inside the IDE, and re-using the produced code?
Steps to Reproduce:
(JJS: Error also occurs in the English Version)

- start a fresh delphi 2006
- Create a new Win32 Form project
- double click the form to create new FormCreate handler
- edit the code so it looks like following code

procedure TForm1.FormCreate(Sender: TObject);
begin
     while true do
       Form1.Left:=0;
     break;
end;

- compile (Ctrl-F9)
- you will get Error: BREAK,CONTINUE outside loop...
- move your cursor inside the while loop on the dot of Form1.
- Invoke code-completion (Ctrl-Space) on Form1.Left and select nothing (press esc)
- compile (Ctrl-F9)

While testing the steps of this report, I get somehow two different error-messages
(it seems to depend on the state of the editor)

[Pascal Fataler Fehler] Unit1.pas(30): F2084 Interner Fehler: T2571
or
[Pascal Fataler Fehler] Unit1.pas(31): F2084 Interner Fehler: AV21FA43BA-R00000015-0


Workarounds
None
Attachment
None
Comments

Sebastian Modersohn at 12/23/2005 5:44:40 AM -
I can reproduce this easily. As mentioned in the report there are 2 different internal compiler error messages. The first one is

[Pascal Fatal Error] Unit1.pas(30): F2084 Internal Error: AV023143BA-R00000002-0

After a second compile without changing anything, the second error is shown:

[Pascal Fatal Error] Unit1.pas(30): F2084 Internal Error: T2571

Server Response from: ETNACODE01