When preparing the demo for another posting (
http://www.lazarus.freepascal.org/index.php/topic,19774.0.html) I came across an issue with frames that I have not seen before:
- Create a new application
- Save unit and project
- Create a new frame
- Add controls to the frame
- Save the frame
- Go back to the main unit, insert the frame
- Save - everything is well so far
- Close Lazararus, restart and load this project. There is an error message saying that "Unable to find component class "TFrame1". It is not registered via RegisterClass and no lfm was found. It is needed by unit ...\unit1.pas."
- The lfm does exist where it is expected, and clicking on any of the three buttons on the messagebox continues loading the project such that it can be compiled without any error.
I am working on Win32 with the recent svn trunk of Laz1.1. Using my other installation with Lazarus 1.0 does not show the issue.
Also, when the frame is created at runtime, the form loads, compiles and runs fine without an error message.
Am I doing something wrong, or is this a recently-introduced bug?