October 15, 2008
Using DMD 2 on Windows, Thread.getThis throws an exception and prints "didn't find it" on the command line.

It appears that Thread.thread_init isn't getting called as it should during gc_init. When I explicitly call Thread.thread_init in my main procedure, Thread.getThis returns a valid object.

I've searched, but can't find any bugs logged about this issue. Can anyone else repro?

John
October 15, 2008
On Wed, 15 Oct 2008 12:15:04 +0400, John C <johnch_atms@hotmail.com> wrote:

> Using DMD 2 on Windows, Thread.getThis throws an exception and prints "didn't find it" on the command line.
>
> It appears that Thread.thread_init isn't getting called as it should during gc_init. When I explicitly call Thread.thread_init in my main procedure, Thread.getThis returns a valid object.
>
> I've searched, but can't find any bugs logged about this issue. Can anyone else repro?
>
> John

Try putting this issue into bugzilla, this newsgroup is not much used for the bugs discussion but rather for a notification that a new bug report has been submitted.