[Lazarus] Gtk2 list of pressed keys

2020-07-17 Thread Alexey Tor. via lazarus
    FKeyStateList_: TFPList; // Keeps track of which keys are pressed I suggest to change this to array[0..N] of integer (N can be only 2? 5? 10? 20?). this way we won't do mem allocs on each keypresss/depress. Alexey Torgashin -- ___ lazarus

Re: [Lazarus] Debugging the rtl/fcl - segfault in sdfdataset

2020-07-17 Thread Luca Olivetti via lazarus
El 17/7/20 a les 12:49, Luca Olivetti via lazarus ha escrit: El 17/7/20 a les 12:45, Luca Olivetti via lazarus ha escrit: El 17/7/20 a les 12:32, Luca Olivetti via lazarus ha escrit: However I put a breakpoint on every SetAsString and none is triggered And that's an issue with the

Re: [Lazarus] Debugging the rtl/fcl - segfault in sdfdataset

2020-07-17 Thread Luca Olivetti via lazarus
El 17/7/20 a les 12:45, Luca Olivetti via lazarus ha escrit: El 17/7/20 a les 12:32, Luca Olivetti via lazarus ha escrit: However I put a breakpoint on every SetAsString and none is triggered And that's an issue with the debugger I think :-( Sorry, it was a PEBKAC, I was debugging under

Re: [Lazarus] Debugging the rtl/fcl - segfault in sdfdataset

2020-07-17 Thread Luca Olivetti via lazarus
El 17/7/20 a les 12:32, Luca Olivetti via lazarus ha escrit: However I put a breakpoint on every SetAsString and none is triggered And that's an issue with the debugger I think :-( Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax

Re: [Lazarus] Debugging the rtl/fcl - segfault in sdfdataset

2020-07-17 Thread Luca Olivetti via lazarus
El 17/7/20 a les 12:12, Michael Van Canneyt via lazarus ha escrit: On Fri, 17 Jul 2020, Luca Olivetti via lazarus wrote: El 17/7/20 a les 11:46, Luca Olivetti via lazarus ha escrit: In fact, if you look at the bug report, it's enough to use the old version of Fielddefs.Add (i.e. the one

Re: [Lazarus] Debugging the rtl/fcl - segfault in sdfdataset

2020-07-17 Thread Michael Van Canneyt via lazarus
On Fri, 17 Jul 2020, Luca Olivetti via lazarus wrote: El 17/7/20 a les 11:46, Luca Olivetti via lazarus ha escrit: In fact, if you look at the bug report, it's enough to use the old version of Fielddefs.Add (i.e. the one without the encoding) to "fix" the problem, but it's not because of

Re: [Lazarus] Debugging the rtl/fcl - segfault in sdfdataset

2020-07-17 Thread Luca Olivetti via lazarus
El 17/7/20 a les 11:46, Luca Olivetti via lazarus ha escrit: In fact, if you look at the bug report, it's enough to use the old version of Fielddefs.Add (i.e. the one without the encoding) to "fix" the problem, but it's not because of the default (I changed it to 'utf-8', or maybe it's

Re: [Lazarus] Debugging the rtl/fcl - segfault in sdfdataset

2020-07-17 Thread Luca Olivetti via lazarus
El 17/7/20 a les 10:26, Michael Van Canneyt via lazarus ha escrit: For the record, I tried to set the codepage of the component to 'utf-8' and it still segfaults, so I don't think it's because of the default codepage. We'll see. This is the only relevant change in the component, so that is

Re: [Lazarus] Debugging the rtl/fcl - segfault in sdfdataset

2020-07-17 Thread Michael Van Canneyt via lazarus
On Fri, 17 Jul 2020, Luca Olivetti wrote: El 17/7/20 a les 9:51, Michael Van Canneyt ha escrit: I reported it here https://bugs.freepascal.org/view.php?id=37370 I found that reverting https://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision=43245 (in fact I just took sdfdata.pp

Re: [Lazarus] Debugging the rtl/fcl - segfault in sdfdataset

2020-07-17 Thread Luca Olivetti via lazarus
El 17/7/20 a les 9:51, Michael Van Canneyt ha escrit: I reported it here https://bugs.freepascal.org/view.php?id=37370 I found that reverting https://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision=43245 (in fact I just took sdfdata.pp from 3.0.4) fixes the segfault. Michael, what

Re: [Lazarus] Debugging the rtl/fcl - segfault in sdfdataset

2020-07-17 Thread Michael Van Canneyt via lazarus
On Thu, 16 Jul 2020, Luca Olivetti wrote: El 16/7/20 a les 8:55, Luca Olivetti via lazarus ha escrit: El 15/7/20 a les 18:26, Luca Olivetti via lazarus ha escrit: For the record, the segfault happens here #0 SYSGETMEM_FIXED(544) at ../inc/heap.inc:963 The memory is hosed, I still don't