用CWinThread创建的用户线程保存了其指针,线程关闭后该指针要用delete 释放吗:
m_pDrawPngThread=AfxBeginThread(RUNTIME_CLASS(CMyThread));
m_pDrawPngThread=AfxBeginThread(RUNTIME_CLASS(CMyThread));
解决方案 »
- std::string数组可不可以作为函数参数传递?
- CMarkup 解析根节点的问题 云之巅云之巅云之巅云之巅云之巅
- (MFC)为什么WCHAR 的数组里明明存的是一个连续的字符串,当格式成CString 时就出问题呢?
- 关于dll动态库在C#中的应用?
- 如何切分字符串"111,222,3332,44"?
- col = dlg.GetColor(); --->col应该定义成什么数据类型了???
- 如何更新客户区
- 有谁知道Recordset中的Sharp用法?高分相送
- 如何直接读写*.img 格式文件中的文件内容?
- win2000中编程中遇到的问题
- edit contrl控件如何得到光标在该控件中的位置,显示行列的值.
- WINMAIN函数的命令行参数
reference
http://msdn2.microsoft.com/en-us/library/efk30beh.aspx
However, often you need to clean up the resources used by other threads before the message pump stops. A common practice is to delete all thread before the main window is destroyed.