https://issues.dlang.org/show_bug.cgi?id=15514 --- Comment #3 from ag0aep6g at gmail.com --- I think the problem is that the memory for the closure is allocated as soon as the initialize function is entered, i.e. before the call to Runtime.initialize. --