AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Exception.StackTrace ?

Ein Thema von himitsu · begonnen am 17. Mai 2011 · letzter Beitrag vom 1. Nov 2013
 
Benutzerbild von himitsu
himitsu

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
44.316 Beiträge
 
Delphi 12 Athens
 
#1

Exception.StackTrace ?

  Alt 17. Mai 2011, 13:03
Delphi-Version: XE
Seit einer Weile gibt es in allen Exception-Klassen theoretisch einen Stacktrace, welchen man auslesen könnte.
Nur leider hat irgendein "Idiot" vergessen diesen zu füllen.

Gut, wenn man sich das nun genauer ansieht, müßte man diesen drei Property erstmal was zuweisen, damit das dann auch nutzbar ist.
So ist das aber eine vollkommen nutzlose Funktion.
Delphi-Quellcode:
Exception = class(TObject)
public
class var
  // Hook this function to return an opaque data structure that contains stack information
  // for the given exception information record. This function will be called when the
  // exception is about to be raised or if this is an external exception such as an
  // Access Violation, called soon after the object is created.
  GetExceptionStackInfoProc: function (P: PExceptionRecord): Pointer;
  // This function is called to return a string representation of the above opaque
  // data structure
  GetStackInfoStringProc: function (Info: Pointer): string;
  // This function is called when the destructor is called to clean up any data associated
  // with the given opaque data structure.
  CleanUpStackInfoProc: procedure (Info: Pointer);
Nur wo bekommt man das her und warum hat Emba das nicht gleich mitgeliefert?

Ach ja, die vielen neuen Hilfethemen ala "This is xxx, a member of xxx.", welche in der OH nun drin sind, sind nicht hilfreich, dann das weiß ich auch alles so schon.
Zitat von http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/SysUtils_Exception_StackTrace.html:
Pascal
property StackTrace: string; .

Description
This is StackTrace, a member of class Exception.
Ein Therapeut entspricht 1024 Gigapeut.

Geändert von himitsu (17. Mai 2011 um 13:46 Uhr)
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:42 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz