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. _______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus