R6016 - 线程数据空间不足 [英] R6016 - not enough space for thread data

查看:53
本文介绍了R6016 - 线程数据空间不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 C++ 应用程序中调试R6016 - 线程数据空间不足".我已经阅读了 http://support.microsoft.com/kb/126709 但想要一些其他输入.

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.

推荐答案

此错误消息由 C 运行时库 CRT 生成.您使用的是哪个版本的 CRT?我将首先确定生成此错误时我的调用堆栈是什么.您可以 grep CRT 源代码以查找将返回错误的每个位置.我还会查看我的代码中调用 TLSAlloc 的任何地方,以了解我将哪些内容放入线程本地存储以及原因.

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.

这篇关于R6016 - 线程数据空间不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆