I'm in the process of trying to migrate a very old project from Delphi 2007 to Delphi 10.4 and I've found that when I try to run the project I get an Exception EComponentError message. I've searched all the previous answers to this on Stack Overflow and various other websites but I can't find anything that actually helps.
Having checked my .dfm files (this happens with every .dfm file in the project) the object is not duplicated anywhere nor is it auto generated in any way leading to multiple items with the same name. It's simply an object dropped on to the form (in Delphi 2007). When I rename the object in the .dfm file it simply moves on to the next object and claims that it's also a duplicate. I've tried renaming about 20 separate objects but the problem keeps moving to the next one. It's not a problem I've ever seen in Delphi 2007.
Does anyone know what's happening and how to fix this?
Form1.Create(Owner)
and notTForm1.Create(Owner)
. How about debugging your code starting by placing break point onTForm
andTFrame
's Constructor to find out when this exception are thrown?