[Issue 2159] New: Thread throws window exception upon termination

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 21 13:35:57 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2159

           Summary: Thread throws window exception upon termination
           Product: D
           Version: 2.016
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: bartosz at relisoft.com


This is a very simple test case. The thread runs to completion end then throws
an exception:
Error: Win32 Exception

import std.thread;
void main()
{
        int g;
        int run()
        {
                for(int i = 0; i < 1000; ++i)
                        ++g;
                return 0;
        }
        auto t = new Thread(run);
        t.start;
        t.wait;
}


-- 



More information about the Digitalmars-d-bugs mailing list