due to race condition betwen call of _beginthread() to thread function actually being executed and the notice of a recycle semaphore condition and the freeing of dynamically allocated elements of the global scfg instance.