[Lazarus] SIGSEGV on lclrescache.pas

Dave Coventry dgcoventry at gmail.com
Mon Jun 17 12:43:57 CEST 2013


Thanks for the reply, Mattias.


On 17 June 2013 12:35, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
>
> I see no relationship to your code. Probably it is a side effect of a
> destroyed heap.
> Why do you think that the the above Ifs causes lclrescache to
> crash?
>

I can't either, but if I remove the code from the unit, the crash no longer
occurs.

Fetch the string only once:
> s:=OdReadstrings.Strings[i]
> if Pos('  Center Point',s)>0 then
> ...
>
> Even faster:
> Parse the line for tokens and use hash maps.
>

I'll look into that. Thanks.

>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130617/77bc6bc1/attachment-0003.html>


More information about the Lazarus mailing list