Having an issue with Lazarus 3.6.0, 64-bit Windows build.
Steps:
* create a new project (application)
* add a TPairSplitter from additional controls
* try to build and run the app
This causes the app to crash on startup, with the message 'Class "TPairSplitterSide" not found."
Check if you have 'PairSplitter1', 'PairSplitterSide1' and 'PairSplitterSide2' entries between 'TForm1 = class(TForm)' and 'private' in the unit.
Did you save project before starting it?
I've had similar issues with Lazarus couple of versions back (maybe starting with 3.0, but I'm not sure).
It is only with new project and it happens only occasionally.
When I add new component to form (this is TButton in most cases, since most new project I create are for some testing, but as I can recall, even non visual components can also make this problem), new entry is not created in TForm1 class, but it is created on form. When I double click on such component I get error (something that ).
I usually resolve this so that I save project, delete component from form, add it again and then it all works. And I never have problems with that project again.
I just tried to create new project with Lazarus 3.4 (on Windows 11) and I got this problem.
I attached screenshots.
In screenshot 'problem1' you can see that button is on the form, but it's not under TForm1 class.
Screenshot 'problem2' shows when I double clicked on a button.
Screenshots 'problem3' and 'problem4' shows when starting program.
It would be good idea if you post here complete project that fails.
Additionally, trying to double-click one of the TPairSplitterSide entries in the Object Explorer (left panel) gives an IDE error: "Unable to show method. Please fix the error shown in the message window which is normally below the source editor." Aborting the IDE gives an error message of "Read error: Access violation" twice.
If the issue is as I described, that is probably connected with it.