[fpc-pascal] File region locking unde Linux

2009-05-03 Thread ajv
I have a problem with file region locking under Linux. First I start setup to create a file and writelock range 10..30 -- program setup; {$mode delphi}{$H+} Usescthreads, Classes, SysUtils, BaseUnix; Const Fn = '/home/anthon

Re: [fpc-pascal] File region locking unde Linux

2009-05-04 Thread ajv
bug or is it included in the mentioned bug? Best regards, Anthony Vogelaar == Jonas Maebe wrote: On 03 May 2009, at 14:51, Jonas Maebe wrote: On 03 May 2009, at 14:09, ajv wrote: With Region Do Begin

Re: [fpc-pascal] dynamic array contents and system.move

2010-04-26 Thread ajv
I dit not follow this thread, but maybe it helps. Dynamic arrays are located on the heap and are reference counted. The command System.Move will bypass the reference counting. For this reason and to be sure the data is available when you need it use System.Move on stack located arrays an strings