65,187
社区成员




//首先是一些定义,定义为全局变量
map<string,multimap<string,vector<int>>> mapHashTimeAvgSrcSpeed;
//中间添加了元素
//最后在程序执行return的时候,程序就阻塞在释放mapHashTimeAvgSrcSpeed上面了。
//换这样试试
HeapFree(GetProcessHeap(),0,pBlick);
提醒:
1 A pointer to the memory block to be freed.
This pointer is returned by the HeapAlloc or HeapReAlloc function
2 HeapAlloc或者 HeapRealloc之后,如果这段内存不再用了,应该立即调用HeapFree来释放!