Lazarus 2.0.12 dies when editing SQL lazarus / 16-Databases ---------------------------------------------------------------------- TheNick · 2021-03-10 21:23 Hi, When editing SQLtext in a TSQLQuery-component and when getting an error in the SQL, Lazarus 2.0.12 dies. Anyone seen this behaviour on Windows 10 running a PostgreSQL 12 connection? Br, Niclas ---------------------------------------------------------------------- Zvoni · 2021-03-11 06:47 Not when changing the SQL-Property. But Lazarus gives me an Access Violation, when i have a TSQLQuery- Component, which is set to active in the OI, and when i try to set it to inactive in the Object-Inspector, Lazarus goes BOOM. Bottom Line: Don't set anything of the TSQL-Trinity to active in the OI. Only from Code. ---------------------------------------------------------------------- dsiders · 2021-03-11 16:57 Quote from: Zvoni on March 11, 2021, 07:47:57 amNot when changing the SQL-Property. But Lazarus gives me an Access Violation, when i have a TSQLQuery- Component, which is set to active in the OI, and when i try to set it to inactive in the Object-Inspector, Lazarus goes BOOM. Bottom Line: Don't set anything of the TSQL-Trinity to active in the OI. Only from Code. Have you reported this as bug? Is it specific to a DB component set? ---------------------------------------------------------------------- JuhaManninen · 2021-03-11 17:16 Quote from: dsiders on March 11, 2021, 05:57:45 pmHave you reported this as bug? Is it specific to a DB component set? It is already reported many times. See :  https://bugs.freepascal.org/view.php?id=38352 and its related issues. Particularly nasty to fix. ---------------------------------------------------------------------- balazsszekely · 2021-03-11 20:48 Quote from: JuhaManninen on March 11, 2021, 06:16:11 pmIt is already reported many times. See :  https://bugs.freepascal.org/view.php?id=38352 and its related issues. Particularly nasty to fix. It's fixed in FPC trunk. ---------------------------------------------------------------------- JuhaManninen · 2021-03-11 20:57 Quote from: GetMem on March 11, 2021, 09:48:51 pmIt's fixed in FPC trunk. Does it not need any changes in Lazarus components? Maybe not, good so! The reports, or at least one of them, can be open for a while. Otherwise somebody will report the same issue again. ---------------------------------------------------------------------- balazsszekely · 2021-03-11 21:09 I spent almost an hour fixing the issue, when I noticed that the bug is already fixed.  Another hour wasted... QuoteDoes it not need any changes in Lazarus components?No, the bug is in BufDataset.pas(FPC). https://bugs.freepascal.org/view.php?id=38509 ---------------------------------------------------------------------- TheNick · 2021-03-14 20:35 Thank you all for your responses. So, just have to wait for the bugfix to be released.  Cheers, Niclas