[Lazarus] Illegal typecast in Linux only

Richard Mace richard.mace at gmail.com
Thu May 1 16:42:05 CEST 2014


Thanks Juhu,
Changing my code now :)

Richard


On 1 May 2014 15:23, Juha Manninen <juha.manninen62 at gmail.com> wrote:

> On Thursday, May 1, 2014, Richard Mace <richard.mace at gmail.com> wrote:
>
>> Hi,
>> I am getting the following error: Illegal type conversion: "TObject" to
>> "LongInt" on the following code:
>>
>>
>> TFSGatewayType(Integer(cbo11TrunkType.Items.Objects[cbo11TrunkType.ItemIndex]))
>>
>
> Typecast to Integer should be PtrInt. It works also on a 64-bit system.
>
> Juha
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140501/ae43a15a/attachment-0003.html>


More information about the Lazarus mailing list