Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-03 Thread Marco van de Voort
In our previous episode, Jorge Aldo G. de F. Junior said: I would vote for a new function on all stream types to allow writing strings in the expected way There is no default way to stream a string. On textfiles you only stream contents, on binary files usually a length field (which can be

Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-03 Thread michael . vancanneyt
On Fri, 3 Feb 2012, Marco van de Voort wrote: In our previous episode, Jorge Aldo G. de F. Junior said: I would vote for a new function on all stream types to allow writing strings in the expected way There is no default way to stream a string. On textfiles you only stream contents, on

Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-03 Thread Marco van de Voort
In our previous episode, michael.vancann...@wisa.be said: On textfiles you only stream contents, on binary files usually a length field (which can be 1,2,4 bytes depending on format) + contents. The latter exists:

Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-03 Thread michael . vancanneyt
On Fri, 3 Feb 2012, Marco van de Voort wrote: In our previous episode, michael.vancann...@wisa.be said: On textfiles you only stream contents, on binary files usually a length field (which can be 1,2,4 bytes depending on format) + contents. The latter exists:

Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-03 Thread Felipe Monteiro de Carvalho
On Fri, Feb 3, 2012 at 9:39 AM, michael.vancann...@wisa.be wrote: http://www.freepascal.org/docs-html/rtl/classes/tstream.writeansistring.html We could make an optional parameter AsText : Boolean = False which would then write the former. I think this would be a nice addition. One thing I

Re: [fpc-pascal] replace one field of a record in a collection...

2012-02-03 Thread Sven Barth
Am 02.02.2012 21:22, schrieb waldo kitty: On 2/1/2012 17:13, Sven Barth wrote: Are you storing pointers to records in your collection? If so then just replace the field's value. The change will then be immediately visible for every other code part that holds a reference to this record. thanks

Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-03 Thread Marco van de Voort
In our previous episode, michael.vancann...@wisa.be said: If necessary I would simply add a separate version writetext, and not multiplex it on writeansistring. But as said this is all a slippery slope, specially with unicode profileration ahead. We are going writeunicodestring sooner or

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

2012-02-03 Thread Koenraad Lelong
Hi, I just had some time to look into this again. I downloaded the latest 2.6.0 sources and mostly followed http://wiki.freepascal.org/TARGET_Embedded to make a crosscompiler. In /usr/lib/fpc/2.6.0 there is a ppcrossarm with a date of today when I run ppcrossarm -i. But when I try fpc -Parm

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

2012-02-03 Thread Mark Morgan Lloyd
Koenraad Lelong wrote: Hi, I just had some time to look into this again. I downloaded the latest 2.6.0 sources and mostly followed http://wiki.freepascal.org/TARGET_Embedded to make a crosscompiler. In /usr/lib/fpc/2.6.0 there is a ppcrossarm with a date of today when I run ppcrossarm -i.

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

2012-02-03 Thread Jeppe Græsdal Johansen
Den 03-02-2012 13:23, Koenraad Lelong skrev: Hi, I just had some time to look into this again. I downloaded the latest 2.6.0 sources and mostly followed http://wiki.freepascal.org/TARGET_Embedded to make a crosscompiler. In /usr/lib/fpc/2.6.0 there is a ppcrossarm with a date of today when I

Re: [fpc-pascal] replace one field of a record in a collection...

2012-02-03 Thread waldo kitty
On 2/3/2012 05:07, Sven Barth wrote: Am 02.02.2012 21:22, schrieb waldo kitty: PSCRec(aSatCatColl^.At(idx))^.satname^ := asatname; the data is changing but i'm suspecting that i need to be doing something more because with the above line in place, i'm getting a lot of errors like the

RE : [fpc-pascal] Synapse: SSH client+cryptlib+private key

2012-02-03 Thread Ludo Brands
Hi all, I've been fiddling with connecting to an SSH server. Thanks to Ludo Brands' help I can use username/password with Synapse (stable)+cryptlib. I'm fiddling and trying to get private key authentication to work. While this compiles and runs, Ethereal shows SSH traffic just