changeset 105:2be5f40557e6

Fix segfault on attemp to synchronize on interface classinfo
author Frank Benoit <benoit@tionex.de>
date Thu, 07 Aug 2008 16:03:20 +0200
parents 04b47443bb01
children 8ab6fb387666
files dwtx/draw2d/IFigure.d
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dwtx/draw2d/IFigure.d	Thu Aug 07 15:01:33 2008 +0200
+++ b/dwtx/draw2d/IFigure.d	Thu Aug 07 16:03:20 2008 +0200
@@ -60,7 +60,8 @@
 
 private static bool initStaticCtor_done = false;
 private static void initStaticCtor (){
-    synchronized( IFigure.classinfo ){
+    // synchronizing on IFigure gave a segmentation fault
+    synchronized( Object.classinfo ){
         if( !initStaticCtor_done ){
             IFigure_MAX_DIMENSION_ = new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE);
             IFigure_MIN_DIMENSION_ = new Dimension(5, 5);