Note The global functions have greater overhead and provide fewer features than other memory management functions. New applications should use the heap functions unless documentation states that a global function should be used. For more information, see Global and Local Functions.
MSDN推荐使用 HeapAlloc and HeapFree [解决办法] 内存分配出现的问题很难断定,但是一般情况下,出现“问题”的地方并不是根源所在。