diff options
author | Erich Eckner <git@eckner.net> | 2015-08-10 11:38:13 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2015-08-10 11:38:13 +0200 |
commit | e0fb9f7a51571bb27c9b93869d18592a9193641f (patch) | |
tree | dc86079df22b94d3d938c3630498663822646b68 | |
parent | 08119984085b6c61829c23238ef4dd9f1f5acade (diff) | |
download | units-e0fb9f7a51571bb27c9b93869d18592a9193641f.tar.xz |
neue Prozedur in lowlevelunit.pas: raiseAndDumpExceptionCallStack
-rw-r--r-- | lowlevelunit.pas | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lowlevelunit.pas b/lowlevelunit.pas index a887b58..60de043 100644 --- a/lowlevelunit.pas +++ b/lowlevelunit.pas @@ -66,6 +66,7 @@ procedure myDebugLnThreadLog(s: string); function belegterSpeicher: longint; procedure cleanupLogs; procedure cleanupLog(tid: PtrUInt); +procedure raiseAndDumpExceptionCallStack(msg: string); procedure dumpExceptionCallStack(E: Exception); function startetMit(start: string; var s: string): boolean; function endetMit(ende: string; var s: string): boolean; @@ -563,6 +564,15 @@ begin end; end; +procedure raiseAndDumpExceptionCallStack(msg: string); +var + e: exception; +begin + e:=exception.create(msg); + dumpExceptionCallStack(e); + raise e; +end; + procedure dumpExceptionCallStack(E: Exception); var I: Integer; |