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

Paul Ishenin webpirat at mail.ru
Sat Jan 16 05:36:55 CET 2010

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 constructor is raises an exception it calls a destructor. This is 
so because allocated memory needs to be freed.

Best regards,
Paul Ishenin.

More information about the fpc-pascal mailing list