EResnotFound, CreateNew, RequireDerivedFormResource lazarus / 31-LCL ---------------------------------------------------------------------- vfclists · 2013-05-23 13:00 A new project I am creating is giving me this error message at runtime when try to use RX TDBDateEdit. QuoteProject project1 raised exception class 'EResNotFound' with message; Form resource TPopupCalendar not found. For resourceless forms CreateNew musst be used. See the global variable RequireDerivedFormResource. In file '.\include\customform.inc ' at line 1957 If I am in a bit of hurry at the moment. If I switch to .lrs files for resource will it go away? I am using Lazarus 1.0.6 fixes with FPC 2.6.0 fixes ---------------------------------------------------------------------- JuhaManninen · 2013-05-23 13:14 Quote from: vfclists on May 23, 2013, 03:00:10 pmForm resource TPopupCalendar not found. For resourceless forms CreateNew musst be used. See the global variable RequireDerivedFormResource. ... If I am in a bit of hurry at the moment. If I switch to .lrs files for resource will it go away? No, the .res resources work well. For some reason they are not found now. ---------------------------------------------------------------------- vfclists · 2013-05-23 13:44 After switching to .lrs files and removing the RequireDerivedFormResource := True statement it all works now. Obviously this must be some relatively new method of resource handling in Lazarus I don't know much about. Is there some place to get some more information? Is it something that component designers need to adapt their code for? ---------------------------------------------------------------------- JuhaManninen · 2013-05-23 16:32 When a form does not have a resource file then it must be created with CreateNew(), as your error message said. However I understood your form has a resource file. This feature is not very new, it has been there for some years already. ---------------------------------------------------------------------- taazz · 2013-05-23 23:32 Quote from: JuhaManninen on May 23, 2013, 06:32:32 pmWhen a form does not have a resource file then it must be created with CreateNew(), as your error message said. However I understood your form has a resource file. Actually the problem with that approach is that even if the form does not have a resource but everything is dynamically created in the constructor if you call createNew instead, the code that creates everything never executes (aka create constructor). I have found that it is better to set the RequireDerivedFormResource to false and keep that way. ---------------------------------------------------------------------- BigChimp · 2013-05-24 06:58 Quote from: vfclists on May 23, 2013, 03:44:56 pmIs there some place to get some more information? The Lazarus changelog on the wiki has some info IIRC. Would be around 0.9.30 I think.