Re: [fpc-pascal] methods of an object to create others objects

2010-12-02 Thread David Emerson
> Wouldn't it be nice if we had a try..except..finally statement > supported in FPC. All-in-one. We do: it is called "try try" try try // ... except // ... finally // ... Okay, so maybe that's slightly nonstandard, but I'd rather use this awkwardness than add an even more awkward extra in

[fpc-pascal] Cannot get TFPTimer to work

2010-12-02 Thread Darius Blaszyk
Whatever I tried, I cannot get TFPTimer to work. Can someone help? For some reason the OnTimer even is never fired. Tried on Windows and Linux. Here's a snippet I used as test. Regards, Darius program fptimertest; {$mode objfpc}{$H+} uses {$IFDEF UNIX} cthreads, {$ENDIF} SysUtils, fpT

Re: [fpc-pascal] methods of an object to create others objects

2010-12-02 Thread Martin
On 02/12/2010 18:26, David Emerson wrote: Wouldn't it be nice if we had a try..except..finally statement supported in FPC. All-in-one. We do: it is called "try try" try try // ... except // ... finally // ... I wonder where the *big* advantage of this "try..except..finally" is? Look

Re: [fpc-pascal] Cannot get TFPTimer to work

2010-12-02 Thread Burkhard Carstens
Am Donnerstag, 2. Dezember 2010 19:39 schrieb Darius Blaszyk: > Whatever I tried, I cannot get TFPTimer to work. Can someone help? > For some reason the OnTimer even is never fired. Tried on Windows and > Linux. Here's a snippet I used as test. > > Regards, Darius > [..] > begin > test := TBase

Re: [fpc-pascal] Cannot get TFPTimer to work

2010-12-02 Thread Michael Van Canneyt
On Thu, 2 Dec 2010, Burkhard Carstens wrote: Am Donnerstag, 2. Dezember 2010 19:39 schrieb Darius Blaszyk: Whatever I tried, I cannot get TFPTimer to work. Can someone help? For some reason the OnTimer even is never fired. Tried on Windows and Linux. Here's a snippet I used as test. Regards,

Re: [fpc-pascal] Cannot get TFPTimer to work

2010-12-02 Thread Darius Blaszyk
> checkSynchronize; Thanks Burkhard. It works now. Regards, Darius ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Cannot get TFPTimer to work

2010-12-02 Thread Brian Winfrey
See .../fpcsrc/packages/fcl-base/examples/testtimer.pp for example usage. On Thu, Dec 2, 2010 at 10:39 AM, Darius Blaszyk wrote: > Whatever I tried, I cannot get TFPTimer to work. Can someone help? For > some reason the OnTimer even is never fired. Tried on Windows and Linux. > Here's a snippet

[fpc-pascal] OFFTOPIC: Money Model, for FPC

2010-12-02 Thread Osvaldo Filho
Is Firebird really free? If you’re expecting some sensation, I’ll not make you happy. Shortly, yes, Firebird is free, completely. You can use it wherever you want and you don’t have to pay anything nor release sources of your application nor … On the other hand, the whole truth, considering all t

[fpc-pascal] 2D Dynamic arrays and BlockRead

2010-12-02 Thread andrew.bennett
After using BlockRead to fill a 2D dynamic array, I get an access violation on the very first reference. A 2D array with only one dimension dynamic works OK. What am I missing? Windows, FPC 2.2.2, 2.2.4 or 2.4.2. Program WriteA ; { Write a binary file using using static array and BlockWrite } C