
Signature
Kind regards,
Bruno van Dooren
bruno_nos_pam_van_dooren@hotmail.com
Remove only "_nos_pam"
Hi Bruno,
> There is no mention of the CRT, so it should not matter either way
> (static or dynamic) or it should have been mentioned along with the
> above restrictions.
Yes, one would hope so :-)
Unfortunately, it doesn't seem to be the case, and the statically linked
CRT is indeed a problem, because we are not in control of thread creation/destruction.
> Could you post a link to the discussions you found regarding this?
> I'll take a closer look.
This is the one I was thinking of, Skywing's second response, more specifically:
http://groups.google.com/group/microsoft.public.win32.programmer.kernel/browse_f
rm/thread/5f72f7a937feb169
While searching for that, I came up with a new reference, this time from
Bobby Mattappally of Microsoft:
http://groups.google.com/group/microsoft.public.vc.language/browse_frm/thread/10
1597aad6adcd23
Here are a couple of other threads on the same theme, with various solutions:
http://groups.google.com/group/microsoft.public.win32.programmer.kernel/browse_f
rm/thread/2801ec76f0b1900a
http://groups.google.com/group/microsoft.public.win32.programmer.kernel/browse_f
rm/thread/2c1d13dfd809c65
--
Best Regards,
Kim Gräsman
Bruno van Dooren - 09 Jul 2006 14:50 GMT
>> There is no mention of the CRT, so it should not matter either way
>> (static or dynamic) or it should have been mentioned along with the above
[quoted text clipped - 3 lines]
> and the statically linked CRT is indeed a problem, because we are not in
> control of thread creation/destruction.
I just read the post you pointed to and you are right. using CRT in those
cases is not safe unless you are using the dynamic CRT.
This is sort of implied by the text I quoted earlier, since the CRT itself
uses TLS.
It is just not mentioned explicitly, which is a pity because it is easy to
overlook, as I did the first time.

Signature
Kind regards,
Bruno van Dooren
bruno_nos_pam_van_dooren@hotmail.com
Remove only "_nos_pam"