[fpc-devel] Error with TypInfo.SetPropValue and enumerated types

Graeme Geldenhuys graeme at mastermaths.co.za
Tue Jan 10 09:16:33 CET 2006

Forgot to mention, I am using FPC 2.0.2 on a Win2000 computer.


Graeme Geldenhuys wrote:
> Hi,
> Can someone confirm if this is a bug in FPC?  The program below makes a 
> copy of a object, which contains an enumerated property.  The Assign 
> only copies published properties for this example.
> All other types seem to work, but enumerated types raise a EVariantError 
> exception.  This code comes from a Delphi project which I am busy 
> porting to Lazarus.  All my unit tests regarding this code passes under 
> Delphi, but fails under FPC.
> King Regards,
>   - Graeme -

More information about the fpc-devel mailing list