Autor Beitrag
Jakane Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 257



BeitragVerfasst: Mi 11.09.13 16:00 
user profile iconWasWeißDennIch hat folgendes geschrieben Zum zitierten Posting springen:
Wo wird denn JFenster erzeugt?


Wenn ich das so mache, bekomme ich den Fehler trotzdem
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TJFenster.JHinweis(Caption, Nachricht : String; Weite : Integer = 200; Hoehe : Integer = 70);
var
  cMemo : TMemo;
begin
  // Varriable initialisieren
  JFenster := TJFenster.Create;
  FFenster:= TForm.Create(Application);


Oder was meinst du?
WasWeißDennIch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 653
Erhaltene Danke: 160



BeitragVerfasst: Mi 11.09.13 16:11 
Du hast eine globale Variable JFenster, auf die Du zugreifst. Bevor Du eine Methode davon aufrufen kannst, muss es ja erst einmal eine Instanz davon geben, daher bringt es nix, diese innerhalb der Methode anlegen zu wollen.

[edit] Schreib doch mal testhalber vor das letzte "end"
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
initialization
  JFenster := TJFenster.Create;

finalization
  JFenster.Free;
[/edit]
Jakane Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 257



BeitragVerfasst: Mo 16.09.13 12:17 
Es funktioniert und ich habe es verstanden :) danke