ExitThread memory leaks?
Posted on 2001-08-27
I was looking up CreateThread in my Win32 documentation when I noticed a little paragraph at the bottom:
"A thread that uses functions from the C run-time libraries should use the beginthread and endthread C run-time functions for thread management rather than CreateThread and ExitThread. Failure to do so results in small memory leaks when ExitThread is called."
Is this true? The "For example, see Creating Threads" link on the page leads to an example program that uses wsprintf in the thread. Kind of hypocritical.
If it's true, then does it mean that I have to implement copies of the CRT functions that I use?