[Lazarus] Illegal typecast in Linux only
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu May 1 16:20:27 CEST 2014
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
More information about the Lazarus
mailing list