changeset 312:17757a168f51

Fix potential seg fault
author Frank Benoit <benoit@tionex.de>
date Mon, 08 Sep 2008 01:35:19 +0200
parents e0d7f76515af
children 9f01a0643e26
files dwt/graphics/Device.d
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/dwt/graphics/Device.d	Sun Aug 24 20:57:41 2008 +0200
+++ b/dwt/graphics/Device.d	Mon Sep 08 01:35:19 2008 +0200
@@ -698,9 +698,7 @@
     Device dev = cast(Device)user_data;
     if (dev.warningLevel is 0) {
         if (DEBUG || dev.debugging) {
-            foreach( msg; (new Exception ("")).info ){
-                Stderr.formatln( "trc {}", msg );
-            }
+            ExceptionPrintStackTrace(new Exception (""));
         }
         OS.g_log_default_handler (log_domain, log_level, message, user_data);
     }