Mercurial > projects > dwt-addons
diff dwtx/draw2d/IFigure.d @ 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 | 2d6540440fe6 |
children |
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);