The D application running under Win7 64 bit fails when exiting. The error details are: Problemsignatur: Problemereignisname: APPCRASH Anwendungsname: smartclient.exe Anwendungsversion: 0.0.0.0 Anwendungszeitstempel: 00000000 Fehlermodulname: smartclient.exe Fehlermodulversion: 0.0.0.0 Fehlermodulzeitstempel: 00000000 Ausnahmecode: c0000096 Ausnahmeoffset: 00016564 Betriebsystemversion: 6.1.7600.2.0.0.256.4 Gebietsschema-ID: 1031 Zusatzinformation 1: 896c Zusatzinformation 2: 896c99b20f8de3f360d5bf94d04c29ea Zusatzinformation 3: 9b53 Zusatzinformation 4: 9b53c73b99497297547530e8345d3867 (Sorry, for the German!) I tried to narrow the location of the failure and I suppose that the error occurs within gc_term(). If I omit this call the application ends without problems.
Why are you calling gc_term? It is function which shutdowns garbage collector (and deallocate everyobject). Doing it manually is really really wrong.
Hmm, but in the documentation (http://www.digitalmars.com/d/1.0/windows.html) they do a call to gc_term() just before returning from WinMain().
BTW, this crash only happens on Win 7 64-bit - not on Win 7 32-bit.
Mass migration of bugs marked as x86-64 to just x86. The platform run on isn't what's relevant, it's if the app is a 32 or 64 bit app.
Marking this bug as D1 only, as the OP used the example from the D1 Windows page (http://www.digitalmars.com/d/1.0/windows.html). This example doesn't even compile with D2. On a semi-related note, the example in the D2 Windows page (http://dlang.org/windows.html) compiles and links just fine. I'm using Windows 7 64-bit.
Since this is Windows and D1 only, it's 100% unsupported and unused nowadays. Closing.