Access violation on short class declaration and component rename
Original Reporter info from Mantis: ik_5
-
Reporter name: Ido Kanner
Original Reporter info from Mantis: ik_5
- Reporter name: Ido Kanner
Description:
When I create something like so:
----------------------
type
TForm1 = class(TForm);
TSomeClass = class
...
end;
TForm1 = class(TForm)
Button1 : TButton;
end;
-----------
And try to rename for example Button1 into btnHello, Lazarus raises an exception of Access Violation, and is unable to rename the component.
Steps to reproduce:
- Create a forward declaration
- Create a new class
- Drop a component on the form
- Try to rename it
Additional information:
-
I'ved noticed that if the component was placed prior to the above steps, it will rename the component properly.
-
On the malling lists, some reported that the events are not added to the class as well.
-
Not everyone could reproduce this issue.
Mantis conversion info:
- Mantis ID: 23148
- OS: Arch Linux x86_64
- OS Build: 3.6.2-1-ARCH
- Platform: GTK 2
- Version: 1.1 (SVN)