Einzelnen Beitrag anzeigen

Benutzerbild von dahead
dahead

Registriert seit: 16. Mai 2005
620 Beiträge
 
#3

Re: Formular aufrufen (welche Methode ist besser)

  Alt 13. Feb 2006, 10:04
Da du Delphi hast, hast du doch sicherlich auch die dazugehörige Hilfe, oder?

Wenn ich meine aufrufe steht bei Destroy folgendes:
Zitat:
Removes the form from memory. ... Do not call Destroy. Instead, call Release, which indirectly produces a call to the Free method, which in turn calls Destroy.
Bei Release das hier:
Zitat:
Use Release to destroy the form and free its associated memory. Release does not destroy the form until all event handlers of the form and event handlers of components on the form have finished executing. Release also guarantees that all messages in the form's event queue are processed before the form is released. Any event handlers for the form or its children should use Release instead of Free (Delphi) or delete (C++). Failing to do so can cause a memory access error. Note: Release returns immediately to the caller. It does not wait for the form to be freed before returning.
Übrigens gibst du einmal Self beim Erstellen der Instanz an, und einmal Application als Owner.
  Mit Zitat antworten Zitat