[fpc-pascal] fcl-net and fpasync

2015-05-18 Thread Xiangrong Fang
Hi All, I try to write a tcp client program, and found this page: http://pascalgeek.blogspot.com/2012/06/encryption-decryption-and-asynchronous.html which is the only resource I found using fcl-net. But there is a big problem: it did not tell how to receive message back from the server. I

[fpc-pascal] Truncate procedure unable to work under Linux, is this a bug?

2015-05-18 Thread Géza Kovacs Géza
Truncate procedure unable to work under Linux, is this a bug? This code is unable to work under linux: the Truncate drops an error message if the file is larger than 2 or 3 GB. I tested it with Free Pascal 2.6.4 under Debian Jessie 64 bit. It produce the same error message under Ubuntu 12.04 32

Re: [fpc-pascal] Truncate procedure unable to work under Linux, is this a bug?

2015-05-18 Thread Jürgen Hestermann
Am 2015-05-18 um 09:30 schrieb Michael Van Canneyt: Function FileTruncate (Handle: THandle; Size: Int64) : boolean; but even that does not work with files 2Gb on unix, because the underlying system call does not support it. I don't know what happens on Windows. On windows it should be

Re: [fpc-pascal] Boring problem when I try to create a database using SQLdb (again)

2015-05-18 Thread silvioprog
On Sat, May 16, 2015 at 2:19 PM, silvioprog silviop...@gmail.com wrote: On Sat, May 16, 2015 at 1:51 PM, Michael Van Canneyt mich...@freepascal.org wrote: On Sat, 16 May 2015, silvioprog wrote: [...] Set the stoUseImplicit option on the transaction:

Re: [fpc-pascal] How to instantiate a public type in a generic class

2015-05-18 Thread Sven Barth
Am 17.05.2015 20:46 schrieb luciano de souza luchya...@gmail.com: Hello listers, Using Freepascal 2.6.4, I have a problem about generics. In short, I can't specialize a class with a subtype of a type declared with public type. Let me try to explain. In dopf.pas, I have: type generic

Re: [fpc-pascal] Truncate procedure unable to work under Linux, is this a bug?

2015-05-18 Thread Michael Van Canneyt
On Sun, 17 May 2015, Géza Kovacs Géza wrote: Truncate procedure unable to work under Linux, is this a bug? This code is unable to work under linux: the Truncate drops an error message if the file is larger than 2 or 3 GB. I tested it with Free Pascal 2.6.4 under Debian Jessie 64 bit. It

[fpc-pascal] SqlDB + SQLite3 - CreateDB() call

2015-05-18 Thread Graeme Geldenhuys
Hi, Does SqlDB+SQLite3 support creating a SQLite database via the TSQLConnection.CreateDB() call? I tested with FPC 2.6.4 and it doesn't seem to work. More specifically, TIBConnection has CreateDB() implemented, but TSQLite3Connection doesn't. Is this implemented in the upcoming FPC 3.0 or in

Re: [fpc-pascal] SqlDB + SQLite3 - CreateDB() call

2015-05-18 Thread Michael Van Canneyt
On Mon, 18 May 2015, Graeme Geldenhuys wrote: Hi, Does SqlDB+SQLite3 support creating a SQLite database via the TSQLConnection.CreateDB() call? I tested with FPC 2.6.4 and it doesn't seem to work. More specifically, TIBConnection has CreateDB() implemented, but TSQLite3Connection doesn't.