Re: [fpc-pascal] What's wrong with this simple test program

2014-12-19 Thread Michael Van Ham
On Fri, Dec 19, 2014, 12:49 Ralf Quint wrote: I have been trying to use tStringList in a larger project of mine, but this just keeps bombing out with a exception. I have been able to reproduce the problem with this very simple test program: program project1; USES Classes; Var T : tStringList;

Re: [fpc-pascal] Which gdb version to use?

2014-12-19 Thread Martin Schreiber
On Friday 19 December 2014 08:57:06 Martin Schreiber wrote: > On Thursday 18 December 2014 18:19:06 Martin Schreiber wrote: > > On Thursday 18 December 2014 14:43:42 Pierre Free Pascal wrote: > > > Did you try to use 7.7 or later release? > > > > gdb compiled from git gdb-7.8-branch > > 84aa7422f44

Re: [fpc-pascal] What's wrong with this simple test program

2014-12-19 Thread Flávio Etrusco
> > Delphi will compile this (like FPC does), but it will fail at runtime. Trust me here, I did the mistake a few times myself when I thought about too many other things. > > Regards, > Sven > Yes and this is just sad. Is there a reasonable case for not disallowing call of constructor as method ou

Re: [fpc-pascal] Size of a partition

2014-12-19 Thread Sven Barth
Am 20.12.2014 00:01 schrieb "Rainer Stratmann" : > > Hi Dave! > > that's exactly what I was searching for. > Thanks a lot. > > One question is left: > > Where can I read the blocksize. Normally it is 512 bytes. But there are > (newer) devices where there is a different blocksize. Also a CD has a di

Re: [fpc-pascal] What's wrong with this simple test program

2014-12-19 Thread Sven Barth
Am 19.12.2014 21:58 schrieb "Ralf Quint" : > > On 12/19/2014 12:53 PM, Joost van der Sluis wrote: >> >> On 12/19/2014 09:48 PM, Ralf Quint wrote: >>> >>> I have been trying to use tStringList in a larger project of mine, but >>> this just keeps bombing out with a exception. >>> I have been able to

Re: [fpc-pascal] Size of a partition

2014-12-19 Thread David W Noon
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, 20 Dec 2014 00:00:35 +0100, Rainer Stratmann (rainerstratm...@t-online.de) wrote about "Re: [fpc-pascal] Size of a partition" (in <20141220.35347.rainerstratm...@t-online.de>): > Hi Dave! > > that's exactly what I was searching for. Thank

Re: [fpc-pascal] Size of a partition

2014-12-19 Thread Rainer Stratmann
On Saturday 20 December 2014 00:00:35 you wrote: > Hi Dave! > > that's exactly what I was searching for. > Thanks a lot. > > One question is left: > > Where can I read the blocksize. /sys/block/sda/queue/hw_sector_size logical_block_size physical_block_size and so on > Normally it is 512 by

Re: [fpc-pascal] Size of a partition

2014-12-19 Thread Rainer Stratmann
Hi Dave! that's exactly what I was searching for. Thanks a lot. One question is left: Where can I read the blocksize. Normally it is 512 bytes. But there are (newer) devices where there is a different blocksize. Also a CD has a different blocksize as far I know. On Friday 19 December 2014 2

Re: [fpc-pascal] What's wrong with this simple test program

2014-12-19 Thread Ralf Quint
On 12/19/2014 12:53 PM, Joost van der Sluis wrote: On 12/19/2014 09:48 PM, Ralf Quint wrote: I have been trying to use tStringList in a larger project of mine, but this just keeps bombing out with a exception. I have been able to reproduce the problem with this very simple test program: program

Re: [fpc-pascal] What's wrong with this simple test program

2014-12-19 Thread Joost van der Sluis
On 12/19/2014 09:48 PM, Ralf Quint wrote: I have been trying to use tStringList in a larger project of mine, but this just keeps bombing out with a exception. I have been able to reproduce the problem with this very simple test program: program project1; USES Classes; Var T : tStringList;

[fpc-pascal] What's wrong with this simple test program

2014-12-19 Thread Ralf Quint
I have been trying to use tStringList in a larger project of mine, but this just keeps bombing out with a exception. I have been able to reproduce the problem with this very simple test program: program project1; USES Classes; Var T : tStringList; S : String; begin S := 'Test'; T.Crea

Re: [fpc-pascal] Size of a partition

2014-12-19 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: On Thursday 18 December 2014 22:49:08 you wrote: On 12/18/14, Rainer Stratmann wrote: How to get the total size of an unmounted partition in Linux? Can you use the info at http://serverfault.com/questions/190685/whats-the-best-way-to-get-info-abou t-currently-unmounte

Re: [fpc-pascal] Linux, keypressed, readkey

2014-12-19 Thread Kiên Nguyễn Tiến Trung
Units keyboard, video, mouse are strongly better than unit crt. I recommend you to use them. 2014-12-19 20:36 GMT+07:00 Tomas Hajny : > > On Fri, December 19, 2014 13:54, Rainer Stratmann wrote: > > Is it possible to do > > > > keypressed and readkey > > > > directly with a systemcall in linux wit

Re: [fpc-pascal] Linux, keypressed, readkey

2014-12-19 Thread Tomas Hajny
On Fri, December 19, 2014 13:54, Rainer Stratmann wrote: > Is it possible to do > > keypressed and readkey > > directly with a systemcall in linux without unit crt? Unit keyboard provides another solution across all supported platforms (without certain disadvantages of unit Crt). Tomas

Re: [fpc-pascal] Linux, keypressed, readkey

2014-12-19 Thread Rainer Stratmann
On Friday 19 December 2014 14:13:42 you wrote: > Am 19.12.2014 13:55 schrieb "Rainer Stratmann" > > Is it possible to do > > > > keypressed and readkey > > > > directly with a systemcall in linux without unit crt? > > Unit CRT is basically only reading from StdIn to determine pressed keys. >

Re: [fpc-pascal] Size of a partition

2014-12-19 Thread Sven Barth
Am 19.12.2014 13:54 schrieb "Rainer Stratmann" : > > On Thursday 18 December 2014 22:49:08 you wrote: > > On 12/18/14, Rainer Stratmann wrote: > > > How to get the total size of an unmounted partition in Linux? > > > > Can you use the info at > > http://serverfault.com/questions/190685/whats-the-

Re: [fpc-pascal] Linux, keypressed, readkey

2014-12-19 Thread Sven Barth
Am 19.12.2014 13:55 schrieb "Rainer Stratmann" : > > Is it possible to do > > keypressed and readkey > > directly with a systemcall in linux without unit crt? Unit CRT is basically only reading from StdIn to determine pressed keys. Just look at the implementation of KeyPressed and ReadKey in CRT t

[fpc-pascal] Linux, keypressed, readkey

2014-12-19 Thread Rainer Stratmann
Is it possible to do keypressed and readkey directly with a systemcall in linux without unit crt? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Size of a partition

2014-12-19 Thread Rainer Stratmann
On Thursday 18 December 2014 22:49:08 you wrote: > On 12/18/14, Rainer Stratmann wrote: > > How to get the total size of an unmounted partition in Linux? > > Can you use the info at > http://serverfault.com/questions/190685/whats-the-best-way-to-get-info-abou > t-currently-unmounted-drives ? >