Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
Compiler
Delphi
Anonymous Methods
BASM
Code Generation/Optimization
Error Recovery
Errors - Warnings
Exceptions
Execution
Finalization
Generics
Header Generation
Interaction with UI
Interfaces
Language
Linker
Make Logic
Memory Manager
OBJ Generation
OBJ Support
Other Compiler
Packages
RTTI
String Resources
TD Debug Info
Thread Local Storage
Version resilience
You are not logged in.
Help
Print
Public Report
Report From:
Delphi-BCB/Compiler/Delphi/Anonymous Methods
[ Add a report in this area ]
Report #:
68988
Status:
Closed
Internal error with anonymous procedure accessing Result
Project:
Delphi
Build #:
17555
Version:
12.0
Submitted By:
Andrei Chesaru
Report Type:
Crash / Data loss / Total failure
Date Reported:
11/16/2008 9:40:01 AM
Severity:
Commonly encountered problem
Last Updated:
3/20/2012 2:24:39 AM
Platform:
All platforms
Internal Tracking #:
266724
Resolution:
Duplicate
(Resolution Comments)
Resolved in Build:
:
12.0.3266.18473
Duplicate of:
None
Voting and Rating
Overall Rating:
No Ratings Yet
0.00 out of 5
Total Votes:
None
Description
The compiler gives "F2084 Internal Error: T2675" for the code below, where an anonymous procedure that (if called) would set the Result of the function it is declared in. The cursor goes to the final end. The error T2675 is not documented.
type
TProcReference = reference to procedure;
function MyFunc(): Boolean;
var
LProc: TProcReference;
begin
LProc := procedure()
begin
Result := True;
end;
LProc(); // would typically be something like: ExternalExecute(LProc);
end;
It should either work, give a more specific error message, with the cursor should be placed in the correct location (i.e. where "Result" is referenced), or the error should be documented.
Steps to Reproduce:
None
Workarounds
Use a local var:
function MyFunc(): Boolean;
var
LProc: TProcReference;
LResult: Boolean;
begin
LProc := procedure()
begin
LResult := True;
end;
LProc(); // would typically be something like: ExternalExecute(LProc);
Result := LResult;
end;
Attachment
None
Comments
None
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us