I have a library (FFVCL) without source code (only DCUs). It contains a form called TfrmAbout. My program also contain my own TfrmAbout form (totally different thing but with the same class name).
When I compile, I get this hint:
H2161 Warning: Duplicate resource: Type 10 (RCDATA), ID TFRMABOUT; File C:\Packages\Controls\FormAbout.dfm resource kept; file c:\Packages\FFVCL\DCU_DXT4\Win32\FFAbout.dfm resource discarded.
In other projects, MY dfm is discharged, and the other one (FFVcl) is kept.
In this case, the app crashes with a nasty error during sreaming: Label1 not found (Label1 is a label in MY form).
Why is the compiler behaving this way?
Yes, I could rename my class from TFormAbout to something else, but I want a solution that accepts both forms as they are (for example, what if BOTH forms are in DCU files and I can't rename the class)?
Note: this question is different from H2161 Warning: Duplicate resource: Type 10 (RCDATA) because that one asks about dres files explicitly liked with {$R}.