R6016 not enough space for thread data 的问题

qly2010 2005-09-01 12:06:43
各位高人:
我的多线程程序里在第二个线程一起动就会出现上面的提示,这是为什么?是编译的问题吗?我最开始使用MFC调用的时候没有出现这种问题,后来因为MFC编译后的文件比较大,所以对程序进行了修改,去掉了MFC的所有类,也就成了相当于用C编的程序了,但是就出了上面的问题.所以想请问各位高人有谁知道如何解决?
急!多谢各位了!
...全文
7551 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
DentistryDoctor 2005-09-01
  • 打赏
  • 举报
回复
不曾遇到过。

你的代码呢?

另外建个Win32的工程试试、
windcsn 2005-09-01
  • 打赏
  • 举报
回复
是说,操作系统不能申请足够的内存来为启动线程创建必要的数据
是你的内存都用光了?不知道,你检查检查,
windcsn 2005-09-01
  • 打赏
  • 举报
回复
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.

qly2010 2005-09-01
  • 打赏
  • 举报
回复
谢谢各位,我知道原因所在了,我改在project settings 中 C/C++ Code Generation 里的Use run-time library 选项里的Single threaded 为Multithreaded,问题就解决了.感谢朋友们的帮助!

15,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧