Einzelnen Beitrag anzeigen

hoika

Registriert seit: 5. Jul 2006
Ort: Magdeburg
8.270 Beiträge
 
Delphi 10.4 Sydney
 
#2

AW: Problem mit Tform und free

  Alt 28. Okt 2010, 06:08
Hallo,

Delphi-Quellcode:
var
  Form: TForm_Adressing; // lokale Variable
begin
  Form:= TForm_Adressing.Create(NIL);
  try
    Form.ShowModal;
  finally
    FreeAndNIL(Form);
   // oder
   // Form.Free; Form:= NIL;
  end;
Das von Delphi automatisch als globale Variable erstellte form_adressing
läßt du gleich ganz liegen.


Heiko
Heiko
  Mit Zitat antworten Zitat