3
votes

When I delete a visual component in a base form, and forget any references in inherited forms, my application only breaks in runtime.

What I normally do is to use a search tool to find references in .DFM, but I'm not completely satisfied with this method.

Do you have any better recommendations?

2

2 Answers

1
votes

Just to be sure, but have you used 'inherited' in the inherited dfm?

inherited Form1: TForm1
  Caption = 'Form1'
  PixelsPerInch = 96
  TextHeight = 13
end

If you have 'object' and not 'inherited' you get a lot of problems.