[Lazarus] Illegal typecast in Linux only

Richard Mace richard.mace at gmail.com
Thu May 1 18:21:17 CEST 2014


Thanks Mattias,
PtrUInt works like a charm :)

Richard


On 1 May 2014 15:20, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:

> On Thu, 1 May 2014 15:04:56 +0100
> 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]))
> >
> > Is this because I am compiling under Linux 64bit or just Linux or just
> > 64bit? Under Windows 32bit it compiles fine?
>
> 64bit.
> TObject is a 64bit pointer under 64bit.
> You can use
> TFSGatewayType(PtrUInt(cb...
>
> Mattias
>
> --
> _______________________________________________
> 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/aa9c03c8/attachment-0003.html>


More information about the Lazarus mailing list