http://d.puremagic.com/issues/show_bug.cgi?id=4344
godmyoh <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from godmyoh <[email protected]> 2010-07-10 21:17:09 PDT --- I also encountered same problem on Winsows XP. Sample: ---------------------------------------------------- import core.thread; import std.socket; void main() { auto thread = new Thread({}); thread.start(); thread.join(); auto socket = new TcpSocket; } ---------------------------------------------------- Results: ---------------------------------------------------- std.socket.SocketException: Unable to create socket ---------------------------------------------------- And I found following code in /trunk/phobos/std/socket.d. 193 static ~this() 194 { 195 version(Win32) 196 { 197 WSACleanup(); 198 } 199 } 200 I think that "shared static ~this()" is correct. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
