Lazarus

Using the Lazarus IDE => General => Topic started by: paweld on July 24, 2021, 10:16:31 am

Title: [CLOSED] Bug - "Access violation" when trying to remove a TSQLQuery with ...
Post by: paweld on July 24, 2021, 10:16:31 am
As bugtracker is currently offline, I report bug here to not forget.

The error occurs from the revision 64985: https://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&root=lazarus&revision=64985
Tested on Lazarus trunk, Windows 10 and Debian 10.

Steps to reproduce:
1. put TSQLQuery on the Form
2. right mouse button on a sqlquery component
3. select "Edit Fields..."
4. create new field
5. close a "Edit Fields..." window
6. delete a SQLQuery component
Title: Re: Bug - "Access violation" when trying to remove a TSQLQuery with defined fields
Post by: JuhaManninen on July 24, 2021, 01:38:45 pm
The error occurs from the revision 64985: https://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&root=lazarus&revision=64985
Tested on Lazarus trunk, Windows 10 and Debian 10.
That would be my commit: "Designer: When removing a component, remove its owned item declarations in source. Issue #38731."

Quote
Steps to reproduce:
1. put TSQLQuery on the Form
2. right mouse button on a sqlquery component
3. select "Edit Fields..."
4. create new field
5. close a "Edit Fields..." window
6. delete a SQLQuery component
Yes, the create new field button does it. I think I have always added fields with the '+' button.
Reverting r64985 indeed fixes it. I must see what issue #38731 says. Reverting may not be enough.
I think the bugs are being transferred to GitLab. Waiting ...
Title: Re: [CLOSED] Bug - "Access violation" when trying to remove a TSQLQuery with ...
Post by: paweld on September 26, 2021, 01:45:19 pm
Fixed in commit: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/b7ab9549a6476fe53ebc5ba048bf7eea49147a10
Thank @JuhaManninen
TinyPortal © 2005-2018