Autor Beitrag
LokutusvB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 74

WinXP
Delphi 5, Delphi XE
BeitragVerfasst: Do 09.09.10 10:45 
Hallo,

Wenn ich eine Form mit F_XYZ := TF_XYZ.Create(nil); erzeuge, konnte ich bisher leide keine Möglichkeit herausfinden, wie ich überprüfen kann, ob die Form noch existiert oder nicht.

Ich konnte 2 Diskussionen im Netz finden, jedoch leider keine Lösung:
www.delphipraxis.net...sobject-isclass.html
www.wer-weiss-was.de.../article2567404.html

Assigned nützt mir hier leider nichts. Gibt es da noch eine andere Möglichkeit?
platzwart
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1054
Erhaltene Danke: 78

Win 7, Ubuntu 9.10
Delphi 2007 Pro, C++, Qt
BeitragVerfasst: Do 09.09.10 10:51 
Wieso hilft Assigned nicht? Wie wird die Form denn wieder freigegeben?

_________________
Wissenschaft schafft Wissenschaft, denn Wissenschaft ist Wissenschaft, die mit Wissen und Schaffen Wissen schafft. (myself)
Tankard
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Administrator
Beiträge: 217
Erhaltene Danke: 96



BeitragVerfasst: Do 09.09.10 10:58 
www.delphipraxis.net...oder-freeandnil.html

mal diesen thread hier lesen.
dann klappt es auch mit assigned

gruss tankard
LokutusvB Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 74

WinXP
Delphi 5, Delphi XE
BeitragVerfasst: Do 09.09.10 11:19 
Moderiert von user profile iconNarses: Komplett-Zitat des letzten Beitrags entfernt.

Mein Fehler, ich nutze bei jedem erzeugten Objekt FreeAndNil, nur nicht bei Formen, warum auch immer. Mit FreeAndNil funktioniert nun auch die Asigned-Abfrage. Vielen Dank für den kleinen Wink!