社区
进程/线程/DLL
帖子详情
mfc AfxTls.cpp 254报错
gorilar
2015-04-27 07:49:39
我在我的mfc应用程序里面跑了2个 winthread, 其中第二个将m_pMainWnd置为第一个winthread的MainWnd
现在我退出程序的时候,会报错 AfxTls.cpp 254
ASSERT(nSlot != 0 && nSlot < m_nMax)
崩溃的时候我的 nSlot为1, 但是 m_nMax看不到,猜测是因为nSlot < m_nMax失败了,但是找不到理由,请帮忙解惑下,谢谢!
...全文
86
2
打赏
收藏
mfc AfxTls.cpp 254报错
我在我的mfc应用程序里面跑了2个 winthread, 其中第二个将m_pMainWnd置为第一个winthread的MainWnd 现在我退出程序的时候,会报错 AfxTls.cpp 254 ASSERT(nSlot != 0 && nSlot < m_nMax) 崩溃的时候我的 nSlot为1, 但是 m_nMax看不到,猜测是因为nSlot < m_nMax失败了,但是找不到理由,请帮忙解惑下,谢谢!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
gorilar
2015-04-28
打赏
举报
回复
这个我看过了。 只是提出猜想的, 没什么大用。 谢谢。 我将另一个cwinthread改成自己的线程就可以了,不过还是不知道为什么,谢谢!
赤勇玄心行天道
2015-04-27
打赏
举报
回复
我没有遇到过这个问题,我在网上找到别人的解释,你参考下吧: http://www.xue163.com/155/1654/1556405.html
afx
tls
.
cpp
.txt
/ This is a part of the Microsoft Foundation Classes C++ library. ...// All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and ...
C++中CSimpleList的实现与测试实例
_
AFX
TLS
.
CPP
文件如下: //#include Std
Afx
.h #include #include #include _
AFX
TLS
_.H struct MyThreadData{ MyThreadData* pNext; int nShortData; }; void CSimpleList::AddHead(void *p) { *GetNextPtr(p)...
C++模板类的用法实例
#ifndef __
AFX
TLS
_H__ #define __
AFX
TLS
_H__ #include class CSimpleList { public: CSimpleList(int nNextOffset=0); void Construct(int nNextOffset); //接口 BOOL IsEmpty() const; void AddHead(void *p)...
VS2008 f:/dd/vctools/vc7libs/ship/atl
mfc
/src/
mfc
/winctrl1.
cpp
错误代码
VS2008 f:/dd/vctools/vc7libs/ship/atl
mfc
/src/
mfc
/winctrl1.
cpp
错误调试。图片如下: 点击重试后进入下面的代码处: 很明显这是
MFC
中CButton类的函数了,在...
Debug Assertion Failed! f:\dd\vctools\vc7libs\ship\atl
mfc
\src\
mfc
\dlgdata.
cpp
按照下面操作 目前不知原因为何 未完待续
进程/线程/DLL
15,471
社区成员
49,182
社区内容
发帖
与我相关
我的任务
进程/线程/DLL
VC/MFC 进程/线程/DLL
复制链接
扫一扫
分享
社区描述
VC/MFC 进程/线程/DLL
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章