CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  进程/线程/DLL

R6016 not enough space for thread data 的问题

楼主qly2010(深谷清幽)2005-09-01 00:06:43 在 VC/MFC / 进程/线程/DLL 提问

各位高人:  
  我的多线程程序里在第二个线程一起动就会出现上面的提示,这是为什么?是编译的问题吗?我最开始使用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

相关问题

  • R6016 not enough space for thread data 的问题
  • r
  • \r\n和\r
  • \r的含义~~~~~~?
  • -drwxr-r--rx--
  • \r是什么
  • why O/R?
  • Shell "shutdown.exe -r -t " & s & " , vbNormalFocus"
  • space
  • Space$

关键词

  • enough
  • threaded
  • 问题
  • 程序
  • 知道

得分解答快速导航

  • 帖主:qly2010
  • windcsn
  • windcsn
  • DentistryDoctor

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo