使用Cwinthread * pthread时,应用程序在发布模式下崩溃 [英] application Crash in Release mode when using Cwinthread *pthread
本文介绍了使用Cwinthread * pthread时,应用程序在发布模式下崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以帮助我.
Hi, anyone can help me.
CWinThread *pthread;
if (pthread==NULL)
{
m_pThread=AfxBeginThread();
waitforsingleobject(m_hevent,25000);
}
why does it crash on relese mode?
推荐答案
检查
Check AfxBeginThread()
And where did you initialize the m_hevent variable? And you''re checking NULL for pthread, but assigning the new thread to m_pThread.
这篇关于使用Cwinthread * pthread时,应用程序在发布模式下崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文