[Lazarus] "Debugger Options" raises Access Violation

Bahman Movaqar bahman at bahmanm.com
Tue Jan 27 06:27:10 CET 2009


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 <dgcoventry at gmail.com> wrote:
> 2009/1/26 Vincent Snijders <vincent.snijders at gmail.com>:
>> 2009/1/26, Mattias Gaertner <nc-gaertnma at netcologne.de>:
>>> 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
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>



More information about the Lazarus mailing list