[Lazarus] TFileStream

Michael Van Canneyt michael at freepascal.org
Mon Jan 26 23:05:36 CET 2009



On Mon, 26 Jan 2009, Dave Coventry wrote:

> 2009/1/26 Andrew Brunner <andrew.t.brunner at gmail.com>:
> > Actually, I'm thinking you're creating a memory problem with using
> > fillchar and passing the pointer to the dynarray instead of the
> > element.  Try using FillChar with the zero element again...  The
> > reason why the construction maybe failing is b/c a potential memory
> > leak created by not using the zero element of the dynarray you are
> > using.
> 
> So you're saying that if I miss out the Fillchar function, it will
> work a expected? Apart from the fact that my array won't be filled
> with spaces, of course.

That is what he is saying, yes.

Michael.




More information about the Lazarus mailing list