[Lazarus] TFileStream
Michael Van Canneyt
michael at freepascal.org
Mon Jan 26 15:43:38 CET 2009
On Mon, 26 Jan 2009, Dave Coventry wrote:
> Hi AJ.
>
> I was under the impression that this:
>
> FS:=TFileStream.Create(fname, fmshareDenyWrite);
> Try
> FS.ReadBuffer(hdbuffer[0],32);
> Finally
> FreeAndNil(FS);<-----
> end;
>
> would free the File Pointer to be used again.
That is correct.
>
> Do you suggest that I use another variable when I do it the second time?
That should absolutely not be necessary.
>
> Is it possible to specify that the program only uses one thread?
This is so by default, unless you create threads yourself ?
More likely is simply the fact that the file cannot be locked.
Michael.
More information about the Lazarus
mailing list