本人是在写dll项目中出现了这个问题,经过一天的研究,尝试了三个步骤
1、在配置属性->常规->MFC的使用中,将在静态库中使用MFC改为在共享DLL中使用MFC。但是还会出错
2、原因是dll参数使用了std:string类型,全部替换成char* 或者使用&不再报错。
3、最终还是不要在dll接口处使用STL,尽量使用标准数据类型,要不然在某些情况下还是会报这个错误。
C++ 出现异常“.... \debug_heap.cpp Line:980 Expression:__acrt_first_block==header"
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Leetcode 904. 水果成篮
【代码】Leetcode 904. 水果成篮。
leetcode 算法 职场和发展 数组 hash表 -
【LeetCode 904-medium】水果成篮
力扣题我的AC代码:(法1:边遍历边维护答案,如果遇到f[i]是第三个数就抛弃
java junit 服务器 尺取法 最小值 -
904. Fruit Into Baskets刷题笔记
题目描述用滑动窗
leetcode python List 滑动窗口 -
LeetCode 904. Fruit Into Baskets
原题链接在这里: 题目: In a row of trees, the i-th tree produces fruit with type tree[i]. You start at any tree of your choice, then repeatedly perform the foll
LeetCode Two Pointers Sliding Window java JAVA