It seems LDC 12.0 on win32 has some problems with std.datetime

finalpatch fengli at gmail.com
Wed Oct 30 04:07:15 PDT 2013


Bascially there's no way to use the std.datetime module without 
getting an error on exit.

Very easy to reproduce:

import std.datetime;
int main(string[] args)
{
}

Compile and run this program in the console window. It prints out 
one line of error message on exit:

object.Exception at N:/Build/src/ldc/runtime/phobos/std/internal/windows/advapi32.d(65): 
FreeLibrary(hAdvapi32)

If we add the std.parallelism module, it gets worse:

import std.parallelism;
import std.datetime;
int main(string[] args)
{
}

Now on exit, it pops up an error dialog:

"The instruction at 0x77c5f766 referenced memory at 0x00000018. 
The memory could not be read.

Click on OK to terminate the program"


More information about the digitalmars-d-ldc mailing list