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

Graeme Geldenhuys graeme at mastermaths.co.za
Tue Jan 10 09:22:17 CET 2006


Just tried it with 2.1.1 (revision from two weeks ago) as well, and the 
error still occurs.

G.


Graeme Geldenhuys wrote:
> Forgot to mention, I am using FPC 2.0.2 on a Win2000 computer.
> 
> G.
> 
> 
> 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 -
>>
> 
> 
> 
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
> 
> 
> 






More information about the fpc-devel mailing list