--- Comment #1 from Andrew Wiley <> 2010-11-06 18:35:01 PDT 
Okay, after adding some debugging writeflns to std.socket, the output is now
initializing WSA
Initializing socket
cleaning up WSA
Initializing socket
Error: 10093
cleaning up WSA

So the problem is that the module destructor for std.socket is called when the
first thread terminates, even though the second thread still needs it.

This is because the module constructor for std.socket is "shared static this()"
while the destructor is "static this()". Adding "shared" causes the code to run

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to