From: Stephen Bertram [mailto:[EMAIL PROTECTED]]
> procedure SetUp;
> begin
>   MyForm1 := TMyForm;
>   MyForm2 := TMyForm;    // This is OK
>   MyFrame1 := TMyFrame;
>   MyFrame2 := TMyFrame;  // This fails with "Component MyFrame
>  already exists".

Presumably you meant "TMyForm.Create(...)" and "TMyFrame.Create(...)".  The
problem seems to be a conflict in the name, so try assigning a new name to
your first frame instance before creating your second, ie.

MyFrame1 := TMyFrame.Create(...);
MyFrame1.Name := 'MyFrame1';
MyFrame2 := TMyFrame.Create(...);
MyFrame2.Name := 'MyFrame2';

I'd further hazard a guess that this only happens when both frames are
created on the same form.

Cheers,
Carl
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to