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.
On Mon, Jan 26, 2009 at 2:23 PM, Dave Coventry <[email protected]> wrote: > 2009/1/26 Vincent Snijders <[email protected]>: >> 2009/1/26, Mattias Gaertner <[email protected]>: >>> Maybe you mean >>> >>> FillChar(recbuffer^,RecSize,' '); >>> ? >>> >> >> Or FillChar(recbuffer[1],RecSize,' '); >> >> if it is a string or [0] if it is a dynarray. > > Thanks. > > I'll put that in. It seemed to work okay as written but I obviously > never had the opportunity to check the output. > > I'll have a go at twisting the code around to see if I can get the > calls to the file stream in the same 'try' block. > _______________________________________________ > Lazarus mailing list > [email protected] > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus > _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
