Re: [fpc-pascal] Dynamic array initialization

2014-03-17 Thread leledumbo
> Are dynamic arrays initialized with nil after the setlength call? >From https://github.com/graemeg/freepascal/blob/master/rtl/inc/dynarr.inc: You can see that the storage is allocated with GetMem and initialized with FillChar 0. So if the base element is pointer, the contents are initialized wi

[fpc-pascal] Dynamic array initialization

2014-03-17 Thread Joao Morais
Hello list! Are dynamic arrays initialized with nil after the setlength call? Doc[1] doesn't say a word about that and my tests say yes, they are initialized with nil. What is the supported behavior? [1] http://www.freepascal.org/docs-html/ref/refsu18.html#x42-480003.3.1 ___

[fpc-pascal] FPC 2.6.4 for GO32

2014-03-17 Thread Lubomír Čabla
Maybe I'm doing something wrong but in the IDE from FPC 2.6.4 for GO32 is GDB missing. Always I get "No debugger support available". Thank you for your help. Lubomir Cabla ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepas

Re: [fpc-pascal] RTL debuginfo on GDB 7.4+ and OSX Mavericks

2014-03-17 Thread Joao Morais
Em 12/03/14 08:55, Martin Frb escreveu: On 12/03/2014 11:27, Joao Morais wrote: If I compile RTL with "-gl -gw", GDB crashes with the following messages: While executing the command: "TGDBMIDebuggerInstruction: "-break-insert +0", " gdb reported: "&"linespec.c:2445: internal-error: void decode_

Re: [fpc-pascal] Library.StringFunction() : PChar => NO

2014-03-17 Thread Fred van Stappen
> (not getting the name thing but wanting to enter into the spirit of the > things) PS : Cfr your studies in Poudlard school... :-) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepa

Re: [fpc-pascal] dynamic array reference count

2014-03-17 Thread Michael Schnell
On 03/15/2014 03:20 PM, Jürgen Hestermann wrote: I added the last sentence which may help you to avoid false assumptions: Well done ! OTHO, IMHO this perfectly documents that the decision (supposedly by Borland) ) to do it this way is a very nasty and the conceptional difference between St

Re: [fpc-pascal] TSQLQuery.ApplyUpdates problem with UTF-8

2014-03-17 Thread Dennis Poon
Dennis Poon wrote: Michael Van Canneyt wrote: On Fri, 14 Mar 2014, Dennis Poon wrote: the content appeared as garbage. I already specified the CHARSET=utf8 in the Create Table SQL. Did you set the TSQLConnection.Charset property to UTF8 as well ? I set it to utf8 (UTF-8 will raise

Re: [fpc-pascal] Library.StringFunction() : PChar => NO

2014-03-17 Thread Reinier Olislagers
On 16/03/2014 20:29, Fred van Stappen wrote: > Many bedankt Harry . ;-) De rien Jean-Jacques-Loup-Cristophe! (not getting the name thing but wanting to enter into the spirit of the things) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org