Re: [Lazarus] External SIGSEGV (random) when assigning TBookmark

2015-11-03 Thread Leonardo M . Ramé
El 03/11/15 a las 04:40, Michael Van Canneyt escribió: On Mon, 2 Nov 2015, Leonardo M. Ramé wrote: El 01/11/15 a las 09:25, Leonardo M. Ramé escribió: Hi, I don't use data aware controls too often, but as I'm updating a legacy application I have to use them. ... I finally solved this by

Re: [Lazarus] External SIGSEGV (random) when assigning TBookmark

2015-11-03 Thread Michael Van Canneyt
On Tue, 3 Nov 2015, Leonardo M. Ramé wrote: El 03/11/15 a las 04:40, Michael Van Canneyt escribió: On Mon, 2 Nov 2015, Leonardo M. Ramé wrote: El 01/11/15 a las 09:25, Leonardo M. Ramé escribió: Hi, I don't use data aware controls too often, but as I'm updating a legacy application I

Re: [Lazarus] External SIGSEGV (random) when assigning TBookmark

2015-11-03 Thread Mark Morgan Lloyd
Leonardo M. Ramé wrote: El 03/11/15 a las 04:40, Michael Van Canneyt escribió: On Mon, 2 Nov 2015, Leonardo M. Ramé wrote: El 01/11/15 a las 09:25, Leonardo M. Ramé escribió: Hi, I don't use data aware controls too often, but as I'm updating a legacy application I have to use them. ...

Re: [Lazarus] External SIGSEGV (random) when assigning TBookmark

2015-11-02 Thread Michael Van Canneyt
On Mon, 2 Nov 2015, Leonardo M. Ramé wrote: El 01/11/15 a las 09:25, Leonardo M. Ramé escribió: Hi, I don't use data aware controls too often, but as I'm updating a legacy application I have to use them. ... I finally solved this by getting the value of a primary key, then after

Re: [Lazarus] External SIGSEGV (random) when assigning TBookmark

2015-11-02 Thread Luca Olivetti
El 03/11/15 a les 00:58, Leonardo M. Ramé ha escrit: What I don't get is what's the purpouse of TBookmark, I thought it was made for solving the problem I had. Yes, but only if you leave the dataset open. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93

Re: [Lazarus] External SIGSEGV (random) when assigning TBookmark

2015-11-02 Thread Luiz Americo Pereira Camara
2015-11-01 13:06 GMT-03:00 Luca Olivetti : > 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

Re: [Lazarus] External SIGSEGV (random) when assigning TBookmark

2015-11-02 Thread Leonardo M . Ramé
El 01/11/15 a las 09:25, Leonardo M. Ramé escribió: Hi, I don't use data aware controls too often, but as I'm updating a legacy application I have to use them. ... I finally solved this by getting the value of a primary key, then after TSQLQuery.refresh I do a locate for that key, works like

Re: [Lazarus] External SIGSEGV (random) when assigning TBookmark

2015-11-02 Thread Virgo Pärna
On Sun, 1 Nov 2015 17:06:18 +0100, Luca Olivetti wrote: > 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

[Lazarus] External SIGSEGV (random) when assigning TBookmark

2015-11-01 Thread Leonardo M . Ramé
Hi, I don't use data aware controls too often, but as I'm updating a legacy application I have to use them. Please take a look at this code. DataModule1.SQLQuery1 is a simple "select * from customers limit 10". What I want to accomplish is the refreshing of a DBGrid *without losing the

Re: [Lazarus] External SIGSEGV (random) when assigning TBookmark

2015-11-01 Thread Luca Olivetti
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