[Issue 2159] Thread throws window exception upon termination
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 22 12:37:25 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2159
torhu at yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Comment #1 from torhu at yahoo.com 2008-06-22 14:37 -------
I hate to be the one to say this, but there's an important typo in your test
case.
try this diff:
-auto t = new Thread(run);
+auto t = new Thread(&run);
You ended up calling the ctor that takes a size_t instead of the function
pointer one.
--
More information about the Digitalmars-d-bugs
mailing list