http://lazarus-ccr.sourceforge.net/docs/lcl/forms/requirederivedformresource.htmlif you plan to work with ONLY dynamic forms, you can set RequireDerivedFromResource to false, in your project main source file.
After what you would use Application.CreateForm in a classic way
Description of global variable RequireDerivedFromResource from wiki
"The form resource is the lfm file compiled into the executable of your application. For this flag it does not matter if it was compiled via an lrs file or via fpcres. The resource is automatically loaded by TForm and therfore any descendant when it is created via Create(Owner). If the resource is missing there is something wrong with either a resource or the unit which contains the faulty form. If the flag is false you will see a blank form and probably search a long time what is wrong. If you set this flag to true you get an exception. For creating forms without resources you have 3 options:
1) Create a TForm class (not a descendant)
2) Construct your form using the CreateNew() constructor.
3) It is also possible to disable the exception by setting the global variable RequireDerivedFormResource to False."
[Lasarus Menu bar ] >> [Project] >> [View Project Source] will open the main project file in lazarus.
RequireDerivedFromResource should be one of the 1st instructions at the begin..end. block.
I do personnally prefer the
CreateNew constructor. check it
