Autor Beitrag
Geri
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 78

XP
RAD Studio XE pro
BeitragVerfasst: Fr 07.04.06 17:21 
Hallo zusammen

Ich habe eine Komponente Names TLayerList erstellt, die von TCOMPONENT abgeleitet ist. Die Komponente soll zwei verschiedene Formulare zur Verfügung stellen. Die Formulare werden über Methoden aufgerufen z.B.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
Constructor TLayerList.Create(aowner:TCompoent);
Begin
  inherited inite(aOwner);
  form1:=TformDlg1.Create(nil);
End;

proceedure TLayerList.ShowDlg();
Begin
  form1.show();
End;


Nachdem ich die Komponente installiet habe und das Programm ausführen will sürzt die Delphi IDE von Delphi 2005 einfach komplett ab. Was mache ich da bitte falsch?

Wie muss man hier bitte vorgehen?

Vielen Dank
Geri

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt
oern
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 142

Linux, Win XP
D7
BeitragVerfasst: Fr 07.04.06 18:06 
ist form1 denn auch eine variable von TLayerList ?

_________________
Ich hab eine Signatur
Geri Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 78

XP
RAD Studio XE pro
BeitragVerfasst: Fr 07.04.06 18:52 
Hallo oern

TLayerList hält eine Varibale auf Form 1

Form1 hält wiederum eine Variable auf Form 2, da sie in Form 1 aufgerufen wird.

Beste Grüsse
Geri
oern
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 142

Linux, Win XP
D7
BeitragVerfasst: Fr 07.04.06 19:01 
eigentlich sollte es so sein:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
type TLayerList = class..

    form1: tform;
  end;

_________________
Ich hab eine Signatur
Geri Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 78

XP
RAD Studio XE pro
BeitragVerfasst: Fr 07.04.06 20:12 
Hallo oern

So schaut die Definition auch aus.

Beste Grüsse
Geri