Solve the “Cannot load a form that has itself as ancestor” error in Delphi

How to solve the “Cannot load a form that has itself as ancestor” error in Delphi

This is how a new/empty project should look like:

uses
  Forms,
  Unit1 in 'Unit1.pas' {Form1};
 {$R *.res}

And this how the project was:

uses
  Forms,
  Unit1 in 'Unit1.pas' {Form}  {$R *.res};   

I spent on hour to find the well hidden culprit. I had a previous this kind of problems but I forgot about it. When do we ever learn?

Leave a Comment

Scroll to Top