On Tue, 23 Nov 2010 15:23:12 -0500, Andrej Mitrovic wrote: > The static constructor is never called when using WinMain. Make sure you use newest DMD, I think in 2.048 or 49 there was bug that module constructors were not called.