Re: [fpc-pascal] TFPHTTPClient Post works with jetty, fails with tomcat

2012-02-09 Thread Michael Van Canneyt
On Thu, 9 Feb 2012, Mattias Gaertner wrote: On Tue, 7 Feb 2012 10:33:04 +0100 Rainer Stratmann wrote: Am Monday 19 December 2011 01:22:18 schrieb Mattias Gaertner: Hi, For some reason TFPHTTPClient.Post hangs when accessing a "solr" server over "tomcat". It works with "solr" over "jetty".

Re: [fpc-pascal] TFPHTTPClient Post works with jetty, fails with tomcat

2012-02-09 Thread Mattias Gaertner
On Thu, 9 Feb 2012 09:43:55 +0100 (CET) Michael Van Canneyt wrote: > > > On Thu, 9 Feb 2012, Mattias Gaertner wrote: > > > On Tue, 7 Feb 2012 10:33:04 +0100 > > Rainer Stratmann wrote: > > >[...] > >> If you have no content-length then mostly in the header ist a > >> field 'Transfer-Encoding:

Re: [fpc-pascal] What ARM targets are supported by FPC?

2012-02-09 Thread Graeme Geldenhuys
On 9 February 2012 00:05, Jorge Aldo G. de F. Junior wrote: > No need, > > this guy ported the whole DirectFB stuff to freepascal : Thanks, I'll take a look. -- Regards,   - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.

[fpc-pascal] Re: FPCDocs: diff: saving fpdoc gives huge diff

2012-02-09 Thread Reinier Olislagers
On 9-2-2012 0:56, Mattias Gaertner wrote: > On Wed, 8 Feb 2012 16:03:05 +0100 > Mattias Gaertner wrote: >> [...] >> Of course it would be nicer if the used xml readers/writers can be told >> to keep the spaces. Especially for version control systems. >> I will take a look. > The xml reader/writer

[fpc-pascal] TLinkedList

2012-02-09 Thread ik
Hello, If my memory is not misleading me, there was once a TLinkedList class under Classes unit, but I can't find any documentation on it. I found an include file that contains it, but it is not meant for the interface part. Is there a reason for this ? Should I use records instead ? Thanks, Ido

[fpc-pascal] Request to fix 2124, was: Code works on Linux x64 but not on Linux x86

2012-02-09 Thread Reinier Olislagers
On 8-2-2012 4:14, Reinier Olislagers wrote: > Raised bug 21242 Marco v.d. Voort suggested turning off the include for i386 assembly code. This fixed the problem (in FPC fixes 2.6, bzip2 code identical with trunk). I've also uploaded a test case to mantis. Could somebody comment out the assembly

Re: [fpc-pascal] tzipper issue(zipper.pp)

2012-02-09 Thread Malcolm Poole
On 09/02/12 05:09, Tony Caduto wrote: The original app zipped the contents of a memo(using vclzip) which was saved to a stream, and the zip does not get stored in a file, rather a tmemorystream, whichis then sent to a client app via a socket. The functions 'compress' and 'uncompress' in units zC

[fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Zaher Dirkey
Hi, TInfo=record s: string; i: integer; end; function func1(a: array of TInfo); how can i pass the parameter to that function? for example, i cant do that? func1([('test1', 1), ('test2', 2)]); -- I am using last reversion of Lazarus, FPC 2.6 Thanks in advance Zaher Dirkey _

Re: [fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Everton Vieira
That`s a question of mine too. Em 09/02/2012, às 15:17, Zaher Dirkey escreveu: > Hi, > > TInfo=record > s: string; > i: integer; > end; > > function func1(a: array of TInfo); > > how can i pass the parameter to that function? > > for example, i cant do that? > > func1([('test1', 1), ('

Re: [fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Thomas Young
Define a pointer type for TInfo then pass the pointer to the function. Dereference the pointer within the function to access the array. Thomas Young 330-256-7064 www.tygraphics.net Sent from my iPhone On Feb 9, 2012, at 12:17 PM, Zaher Dirkey wrote: > Hi, > > TInfo=record > s: string; >

Re: [fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Everton Vieira
Could you give an example? If not bother much. Em 09/02/2012, às 15:45, Thomas Young escreveu: > Define a pointer type for TInfo then pass the pointer to the function. > Dereference the pointer within the function to access the array. > > Thomas Young > 330-256-7064 > www.tygraphics.net > Sent

Re: [fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Thomas Young
This is how I would do that. There may be a better way. > TInfo=record > s: string; > i: integer; > end; > ATInfo = array[1..100] of TInfo; ATInfoPtr = ^ATInfo; Var A:ATInfoPtr; > function func1(a:ATInfoPtr); Thomas Young 330-256-7064 www.tygraphics.net Sent from my iPhone On Feb 9, 2012,

Re: [fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Everton Vieira
Thanks. Em 09/02/2012, às 15:53, Thomas Young escreveu: > This is how I would do that. There may be a better way. > >> TInfo=record >> s: string; >> i: integer; >> end; >> > ATInfo = array[1..100] of TInfo; > ATInfoPtr = ^ATInfo; > > Var > A:ATInfoPtr; > >> function func1(a:ATInfoPtr); >

Re: [fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Thomas Young
New(A); >> function func1(a:ATInfoPtr); var Name:string; N:integer; begin N:= 1; Name:= a^[n].s; end; Thomas Young 330-256-7064 www.tygraphics.net Sent from my iPhone On Feb 9, 2012, at 12:53 PM, Thomas Young wrote: > This is how I wo

Re: [fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Zaher Dirkey
On Thu, Feb 9, 2012 at 7:53 PM, Thomas Young wrote: > This is how I would do that. There may be a better way. > > TInfo=record > > s: string; > > i: integer; > > end; > > > ATInfo = array[1..100] of TInfo; > ATInfoPtr = ^ATInfo; > > Var > A:ATInfoPtr; > > function func1(a:ATInfoPtr); > > > Thom

Re: [fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Everton Vieira
But they couldn't pass like this?: >> This is how I would do that. There may be a better way. >> >>> TInfo=record >>> s: string; >>> i: integer; >>> end; >>> >> ATInfo = array[1..100] of TInfo; >> >> Var >> A :ATInfo; >> >>> function func1(A); Simply passing the array var if he had declare

Re: [fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Howard Page-Clark
On 09/2/12 5:17, Zaher Dirkey wrote: Hi, TInfo=record s: string; i: integer; end; function func1(a: array of TInfo); how can i pass the parameter to that function? You have to declare the parameter type independently of the function declaration. You can also do it without declaring an

Re: [fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Jonas Maebe
On 09 Feb 2012, at 19:07, Zaher Dirkey wrote: > Thanks, but that is not my expected answer, my ask about "dynamic array of > record" and without define a variable to pass it by params, for example i > can pass the params for array of string like this > > func2(['t1', 't1']); this work, but i wan

RE : [fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Ludo Brands
Thanks, but that is not my expected answer, my ask about "dynamic array of record" and without define a variable to pass it by params, for example i can pass the params for array of string like this func2(['t1', 't1']); this work, but i want to extend the params info? You can use a small h

Re: [fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Zaher Dirkey
On Thu, Feb 9, 2012 at 8:10 PM, Jonas Maebe wrote: > Declaring record constants inline in the code is not supported by FPC > (regardless of whether it's for an array parameter, an assignment or > something else). There are no plans to add support for it either. Ouch :P , bad news, but it save my

Re: RE : [fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Zaher Dirkey
On Thu, Feb 9, 2012 at 8:21 PM, Ludo Brands wrote: > ** > > > > > Thanks, but that is not my expected answer, my ask about "dynamic array of > record" and without define a variable to pass it by params, for example i > can pass the params for array of string like this > > func2(['t1', 't1']); thi

Re: [fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Everton Vieira
That`s a nice idea. Em 09/02/2012, às 16:21, Ludo Brands escreveu: > > > > Thanks, but that is not my expected answer, my ask about "dynamic array of > record" and without define a variable to pass it by params, for example i can > pass the params for array of string like this > > func2(['

Re: [fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Thomas Young
Howard are you saying FPC has dynamic arrays? Is it documented? I've been reading the documentation page by page and I've not seen any mention of it. I'm far from completing the reading by the way. If dynamic arrays are part of FPC I couldn't be more delighted. I don't completely understand wha

Re: [fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Reimar Grabowski
On Thu, 09 Feb 2012 19:34:06 -0500 Thomas Young wrote: > Howard are you saying FPC has dynamic arrays? Is it documented? http://wiki.freepascal.org/DYNAMIC_ARRAY R. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Thomas Young
Thank you. Thomas Young cell: 330-256-7064 mobile email: tygraph...@me.com On Feb 9, 2012, at 9:41 PM, Reimar Grabowski wrote: > On Thu, 09 Feb 2012 19:34:06 -0500 > Thomas Young wrote: > >> Howard are you saying FPC has dynamic arrays? Is it documented? > http://wiki.freepascal.org/DYNAMIC_

Re: [fpc-pascal] Pass array of record as parameter

2012-02-09 Thread Thomas Young
Forgive me for being in wide-eyed wonder but my goodness this is more than a nice feature. Brilliant. I feel like a child who has played with toy blocks all these years and who now received keys to a ferrari. Thomas Young cell: 330-256-7064 mobile email: tygraph...@me.com On Feb 9, 2012, at 1

Re: [fpc-pascal] fpc 2.7.1 for arm-embedded

2012-02-09 Thread Koenraad Lelong
On 08-02-12 17:31, Koenraad Lelong wrote: On 08-02-12 15:42, Jonas Maebe wrote: On 08 Feb 2012, at 15:31, Koenraad Lelong wrote: After some debugging, I think my compiler does not work. I'm pretty certain it outputs arm-code in stead of the needed thumb2 code. The error below indicates the

Re: [fpc-pascal] fpc 2.7.1 for arm-embedded

2012-02-09 Thread Rainer Stratmann
Am Friday 10 February 2012 08:25:01 schrieb Koenraad Lelong: > I did another experiment. > I make a zip-file with a 2.7.1 compiler and its sources. I installled > this on a brand new virtual machine with OpenSuse, so no fpc 2.6.0 > available. With this I compiled the compiler itself (no install). T