[Lazarus] External SIGSEGV (random) when assigning TBookmark

Luiz Americo Pereira Camara luizamericop at gmail.com
Mon Nov 2 20:15:42 CET 2015


2015-11-01 13:06 GMT-03:00 Luca Olivetti <luca at wetron.es>:

> El 01/11/15 a les 13:25, Leonardo M. Ramé ha escrit:
>
> To me, the code looks correct, but I'm getting a SIGSEGV while assigning
>> the bookmark. I must add the error only happens the 2nd or 3rd time this
>> method is called:
>>
>
> I suppose that's because the bookmark is only valid while the query is
> opened, buy you close it between getting the bookmark and setting it.
>
>
Yes. In TBufDataset, the bookmark references the internal buffer memory. As
soon dataset is closed, the memory may change

Luiz


> Bye
> --
> Luca Olivetti
> Wetron Automation Technology http://www.wetron.es/
> Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
>
>
> --
> _______________________________________________
> 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/20151102/54f14fc7/attachment-0003.html>


More information about the Lazarus mailing list