检查C++导出DLL的函数中是否有那个地方未使用指针
例如:
InvFileIndex index;
CosInvFileMatching* retrieval = new CosInvFileMatching(index);
是不对的。
必须是
InvFileIndex* index = new InvFileIndex;
CosInvFileMatching* retrieval = new CosInvFileMatching(*index);
检查C++导出DLL的函数中是否有那个地方未使用指针
例如:
InvFileIndex index;
CosInvFileMatching* retrieval = new CosInvFileMatching(index);
是不对的。
必须是
InvFileIndex* index = new InvFileIndex;
CosInvFileMatching* retrieval = new CosInvFileMatching(*index);
转载于:https://my.oschina.net/duluo180/blog/118986