title: _endthreadex(0) hangs
body: <p>I have some code which I did not originally create that uses _beginthreadex and _endthreadex.  For some reason, when it calls _endthreadex(0), the call just hangs and never returns.  Any ideas as to what would normally cause this call to hang?</p>