[Issue 1126] multithreading breaks phobos exceptions on mingw/gdc .23
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 7 02:43:48 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=1126
Iain Buclaw <ibuclaw at ubuntu.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Iain Buclaw <ibuclaw at ubuntu.com> 2012-09-07 02:44:09 PDT ---
Seems to be correct as of testing the sample on D2.
----
import std.stdio, core.thread, std.socket;
// intended to fail
void cause_throw()
{
Socket s=new TcpSocket(new InternetAddress("bogus", 80));
}
void main()
{
(new Thread(() { while (true) { } })).start;
try
cause_throw;
catch (Exception e)
{
writeln("Exception: ", e);
}
writeln("Returning");
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the D.gnu
mailing list