Einzelnen Beitrag anzeigen

blackfin
(Gast)

n/a Beiträge
 
#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.
  Mit Zitat antworten Zitat