Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R6016 - not enough space for thread data

Tags:

visual-c++

How do I go about debugging "R6016 - not enough space for thread data" in a C++ application. I've read http://support.microsoft.com/kb/126709 but would like some other input.

like image 732
CodeLizard Avatar asked May 29 '09 20:05

CodeLizard


1 Answers

This error message is generated by the C Run Time Library, CRT. Which version of the CRT are you using? I would start by determining what my call stack was when this error is generated. You can grep the CRT source code to find every place the error would be returned. I would also look at any in place in my code that calls TLSAlloc to see what I am putting into thread local storage and why.

like image 190
LanceSc Avatar answered Sep 29 '22 17:09

LanceSc