Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/Delphi/Generics    [ Add a report in this area ]  
Report #:  103129   Status: Closed
F2084 Internal Error: URW1147 calling TValue.From<T>
Project:  Delphi Build #:  16.0.4358.45540
Version:    16.3 Submitted By:   David Heffernan
Report Type:  Crash / Data loss / Total failure Date Reported:  2/3/2012 4:54:02 AM
Severity:    Critical / Show Stopper Last Updated: 9/5/2012 8:01:24 PM
Platform:    All versions Internal Tracking #:   289760
Resolution: Fixed (Resolution Comments) Resolved in Build: : 17.0.4625.53395
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
5.00 out of 5
Total Votes: 1
Description
F2084 Internal Error: URW1147 calling TValue.From<T>
Steps to Reproduce:
Add the following code to a project.  Compilation results in F2084 Internal Error: URW1147

The problem occurs in both Windows compilers but strangely does not arise when the code is placed in a .dpr file.

unit YetAnotherGenericsInternalErrorICannotBelieveWeAreStillSufferingThis;

interface

uses
  System.Rtti, Vcl.StdCtrls;

type
  TMyTrivialClass = class
    procedure MyMethod;
  end;

implementation

procedure TMyTrivialClass.MyMethod;
var
  ctx: TRttiContext;
begin
  ctx.GetType(TButton).GetProperty('Style').SetValue(nil, TValue.From<TButton.TButtonStyle>(bsSplitButton));
end;

end.
Workarounds
None
Attachment
None
Comments

None

Server Response from: ETNACODE01