# HG changeset patch # User Frank Benoit # Date 1218117800 -7200 # Node ID 2be5f40557e62752c7e8c4be757c0a6eace0dc81 # Parent 04b47443bb01efa463089109e42d8b2044d14a54 Fix segfault on attemp to synchronize on interface classinfo diff -r 04b47443bb01 -r 2be5f40557e6 dwtx/draw2d/IFigure.d --- 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);