[Lazarus] Debian: fpc-source update

2014-05-01 Thread John Landmesser

Ok, a little bit off topic, but perhaps someone has the answer.

On my Debian ( sid ) i installed fpc-source with apt-get.

After dist-upgrade i have two versions of fpc-source:


apt-cache policy  fpc-source
fpc-source:
  Installiert:   2.6.4+dfsg-1
  Installationskandidat: 2.6.4+dfsg-1
  Versionstabelle:
 *** 2.6.4+dfsg-1 0
500 http://ftp.de.debian.org/debian/ unstable/main i386 Packages
100 /var/lib/dpkg/status
 2.6.2-8 0
500 http://ftp.de.debian.org/debian/ unstable/main i386 Packages




do i have to remove version 2.6.2 manually?

If i do
apt-cache show   fpc-source

there is no line replaces .., so i think its my job to remove the old 
fpc-source 2.6.2??


But why??

Thanks for a tipp!!

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Debian: fpc-source update

2014-05-01 Thread Mattias Gaertner
On Thu, 01 May 2014 12:10:32 +0200
John Landmesser jmlandmes...@gmail.com wrote:

[...]
 do i have to remove version 2.6.2 manually?
 
 If i do
 apt-cache show   fpc-source
 
 there is no line replaces .., so i think its my job to remove the old 
 fpc-source 2.6.2??
 
 But why??

You can have both. They don't interfere.
So, yes, you have to remove old versions manually when you don't need
them anymore.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Illegal typecast in Linux only

2014-05-01 Thread Richard Mace
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?

Thanks

Richard
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Illegal typecast in Linux only

2014-05-01 Thread Mattias Gaertner
On Thu, 1 May 2014 15:04:56 +0100
Richard Mace richard.m...@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@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Illegal typecast in Linux only

2014-05-01 Thread Juha Manninen
On Thursday, May 1, 2014, Richard Mace richard.m...@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@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Illegal typecast in Linux only

2014-05-01 Thread Richard Mace
Thanks Juhu,
Changing my code now :)

Richard


On 1 May 2014 15:23, Juha Manninen juha.mannine...@gmail.com wrote:

 On Thursday, May 1, 2014, Richard Mace richard.m...@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@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Illegal typecast in Linux only

2014-05-01 Thread Richard Mace
Thanks Mattias,
PtrUInt works like a charm :)

Richard


On 1 May 2014 15:20, Mattias Gaertner nc-gaert...@netcologne.de wrote:

 On Thu, 1 May 2014 15:04:56 +0100
 Richard Mace richard.m...@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@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Debian: fpc-source update

2014-05-01 Thread waldo kitty

On 5/1/2014 7:16 AM, Mattias Gaertner wrote:

On Thu, 01 May 2014 12:10:32 +0200
John Landmesser jmlandmes...@gmail.com wrote:


[...]
do i have to remove version 2.6.2 manually?

If i do
apt-cache show   fpc-source

there is no line replaces .., so i think its my job to remove the old
fpc-source 2.6.2??

But why??


You can have both. They don't interfere.
So, yes, you have to remove old versions manually when you don't need
them anymore.


by manually, would that be something like

  apt-get remove fpc-2.6.2

or

  rm /f path/to/fpc/2.6.2

??

--
 NOTE: No off-list assistance is given without prior approval.
   Please *keep mailing list traffic on the list* unless
   private contact is specifically requested and granted.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Debian: fpc-source update

2014-05-01 Thread Mattias Gaertner
On Thu, 01 May 2014 15:24:44 -0400
waldo kitty wkitt...@windstream.net wrote:

 On 5/1/2014 7:16 AM, Mattias Gaertner wrote:
  On Thu, 01 May 2014 12:10:32 +0200
  John Landmesser jmlandmes...@gmail.com wrote:
 
  [...]
  do i have to remove version 2.6.2 manually?
 
  If i do
  apt-cache show   fpc-source
 
  there is no line replaces .., so i think its my job to remove the old
  fpc-source 2.6.2??
 
  But why??
 
  You can have both. They don't interfere.
  So, yes, you have to remove old versions manually when you don't need
  them anymore.
 
 by manually, would that be something like
 
apt-get remove fpc-2.6.2

yes

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] MariaDB Cluster with lazarus

2014-05-01 Thread Eric Kom

Hi All,
I would like to know if MariaDB Cluster version 5.5 and 10.0 can be 
connected trought a  lazarus application?

Thanks

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus