Einzelnen Beitrag anzeigen

Benutzerbild von blackfin
blackfin

Registriert seit: 1. Apr 2007
Ort: Augsburg
937 Beiträge
 
Delphi 2009 Professional
 
#2

AW: Exceptions im Konstruktor auslösen

  Alt 28. Jul 2010, 10:02
Du kannst den Konstruktor vor dem inherited Create mit abort abbrechen:
Zitat:
Use Abort in the constructor. It raises a silent exception. If an object has an exception in the constructor, then the destructor is called automatically and the memory released. The advantage of Abort is then you don't need to worry about an exception dialog being displayed if you don't add exception handling code.
Finn Shorel Aran
Delphi programming is like viral marketing
  Mit Zitat antworten Zitat