这是Microsoft实现std::thread的一个大错误吗?
Is this a BIG bug of Microsoft's implementation of std::thread?
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#include <thread>
using namespace std;
void Hello()
{}
int main()
{
{
std::thread(Hello).join();
}
_CrtDumpMemoryLeaks();
}
输出窗口显示:(vc++编译版本:Nov 2012 CTP)
The thread 0x5ab8 has exited with code 0 (0x0).
Detected memory leaks!
Dumping objects ->
{261} normal block at 0x002A2E00, 44 bytes long.
Data: < > 01 00 00 00 00 00 00 00 00 00 00 00 0A 00 00 00
Object dump complete.
The thread 0x5abc has exited with code 0 (0x0).
The thread 0x5ab4 has exited with code 0 (0x0).
The program '[0x5A94] C++11.exe' has exited with code 0 (0x0).
看看下面的MS Connect条目:
http://connect.microsoft.com/visualstudio/feedback/details/757212/vs - 2012 rc - std -线-报告内存泄漏-甚至在堆栈
相关文章:
- 为什么我的 heap.h 文件给我一个LNK2001错误?
- 修改的Fibbonaci C++得到一个大的负数
- 在C++中分配一个大内存块
- 为什么当我输入一个大数字时,输出会一遍又一遍地重复?
- 为什么断点显示数组的第二个值是一个大数字?额外学分工作
- 我收到一个断言错误,但是当我编写 cout 语句时,它会消失
- 如何有效地将一个大std::字符串的一部分转换为float
- C++如何附加ifstream以将多个文件读取为一个大文件
- 使用 MinGW 构建 ASSIMP 会导致文件太大错误
- 我在 c ++ 中有一个循环错误
- 阅读一个大文件来计算重复K次的单词数
- 在分解的 QR 上应用一个大矩阵
- 当尝试从 c++ 的文本文件中读取时,它会给我一个大的随机数
- 我是一个大的C 菜鸟,我需要帮助我的程序启动代码块
- 将 3 个列表合并到一个大列表中
- VC++的一个大错误?为什么初始值设定项列表不对结构进行值初始化
- 将一个大文件加载到内存中并在程序的所有运行时间内保持它是错误的
- 这是ntoskrnl.exe中tolower实现中的一个大错误吗
- 它给出了一个大值的错误
- 这是Microsoft实现std::thread的一个大错误吗?