Re: [fpc-pascal] Generics problem/question

2010-01-15 Thread leledumbo
Ah... I can see it now: 711 function TFPGList.IndexOf(const Item: T): Integer; 712 begin 713Result := 0; 714{$info TODO: fix inlining to work! InternalItems[Result]^} 715while (Result < FCount) and (PT(FList)[Result] <> Item) do 716 Inc(Result); 717if Result = FCount then 7

[fpc-pascal] RTTI Bug or something else i did wrong...

2010-01-15 Thread Jorge Aldo G. de F. Junior
The following code: - Unit RTTIObject; Interface Uses Classes, SysUtils, StrUtils, Contnrs, TypInfo; Type TRTTIObject = Class(TObject) Private fInstanceName: String;

Re: [fpc-pascal] RTTI Bug or something else i did wrong...

2010-01-15 Thread cobines
2010/1/15 Jorge Aldo G. de F. Junior : > - > C:\Programacao\testcase>rttiobject-testcase.exe > An unhandled exception occurred at $0040E1E7 : > EAccessViolation : Access violation >  $0040E1E7  TRTTIOBJECT__DESTROY,  line 143 of RTTIObject.pas >  $0040E18A  TRTTIOBJE

Re: [fpc-pascal] RTTI Bug or something else i did wrong...

2010-01-15 Thread Jorge Aldo G. de F. Junior
the error happens even if i remove all statements in the constructor... Constructor TRTTIObject.Create(Const aInstanceName: String); Begin Inherited Create; End; Still gives errors... (why should a constructor call the destructor anyway ?) 2010/1/15 cobines : > 2010/1/15 Jorge Aldo G. de F.

Re: [fpc-pascal] RTTI Bug or something else i did wrong...

2010-01-15 Thread Paul Ishenin
Jorge Aldo G. de F. Junior wrote: the error happens even if i remove all statements in the constructor... Constructor TRTTIObject.Create(Const aInstanceName: String); Begin Inherited Create; End; Still gives errors... (why should a constructor call the destructor anyway ?) If a construct