在dll中分配内存的问题
我在dll中malloc了一块内存,把指针用指向指针的指针传了出来。然后在应用程序中释放时,产生错误:
/*
* If this ASSERT fails, a bad pointer has been passed in. It may be
* totally bogus, or it may have been allocated from another heap.
* The pointer MUST come from the 'local' heap.
*/
_ASSERTE(_CrtIsValidHeapPointer(pUserData));
不太明白,有人遇见过吗?