www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Thread.getThis()

reply John C <johnch_atms hotmail.com> writes:
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
Oct 15 2008
parent "Denis Koroskin" <2korden gmail.com> writes:
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.
Oct 15 2008