Summary: InternetAddress fails to resolve host when
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-09-27 20:30:58 PDT ---
When multiple instances of std.socket's InternetAddress are created,
"std.socket.AddressException: Unable to resolve host ''"
On Linux, it works.
If you take out the threading, this works fine.

import core.thread;
import std.socket;
import std.stdio;

void test() {
  auto a = new InternetAddress("", 80);
  a = new InternetAddress("", 80);
  writeln("Connected successfuly.");

void main() {
  auto thr = new Thread(&test);

Build 9/27/2010 on both Windows XP and 7.

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

Reply via email to