R6016 not enough space for thread data 的问题
各位高人:
我的多线程程序里在第二个线程一起动就会出现上面的提示,这是为什么?是编译的问题吗?我最开始使用MFC调用的时候没有出现这种问题,后来因为MFC编译后的文件比较大,所以对程序进行了修改,去掉了MFC的所有类,也就成了相当于用C编的程序了,但是就出了上面的问题.所以想请问各位高人有谁知道如何解决?
急!多谢各位了!
问题点数:50、回复次数:4Top
1 楼windcsn(向所有的朋友学习!)回复于 2005-09-01 09:27:47 得分 10
C Run-Time Error R6016
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
not enough space for thread data
The program did not receive enough memory from the operating system to complete a _beginthread call.
When a new thread is started, the library must create an internal database for the thread. If the database cannot be expanded with memory provided by the operating system, the thread will not begin and the calling process will stop.
Top
2 楼windcsn(向所有的朋友学习!)回复于 2005-09-01 09:29:43 得分 20
是说,操作系统不能申请足够的内存来为启动线程创建必要的数据
是你的内存都用光了?不知道,你检查检查,Top
3 楼DentistryDoctor(不在无聊中无奈,就在沉默中变态)回复于 2005-09-01 12:43:44 得分 20
不曾遇到过。
你的代码呢?
另外建个Win32的工程试试、Top
4 楼qly2010(深谷清幽)回复于 2005-09-01 15:28:19 得分 0
谢谢各位,我知道原因所在了,我改在project settings 中 C/C++ Code Generation 里的Use run-time library 选项里的Single threaded 为Multithreaded,问题就解决了.感谢朋友们的帮助!Top




