It appears as if the following code in the detach case solves the problem: > std.c.stdio._fcloseallp = null; I'm not sure why though... why is the call such a problem, that even crashes the application, and doesn't it have any disadvantages, not to call it?