当前位置:网站首页>Can debug/release versions of dynamic library *.dll files be mixed (cross used)?
Can debug/release versions of dynamic library *.dll files be mixed (cross used)?
2022-07-23 17:20:00 【libaineu2004】
1、 The phenomenon :
Use some third-party dll, such as opencv, Will be generated separately debug and release Of dll, stay exe Must reference the specified version of dll, Can't mix , Otherwise it will go wrong ;
But there are also some third-party dll, such as halcon, Only for users release Of dll, User debug Version and release Version of exe You can quote this dll.
So it seems , There are some dll It can be mixed up ( Cross reference ), Some can't , Why are there differences between the two ?
2、 reason
such as debug Of exe call release Compile generated dll, If the parameters of the interface function are used std::vector perhaps std::string Things like that , It's bound to collapse . because stl stay release and debug Different implementation under .std::string stay debug and release The memory size in the environment is inconsistent . If you mix , Memory collapse will occur .
3、 Conclusion
Not included stl Library debug Dynamic library and release The dynamic library is in debug or release You can use ;
contain stl Of debug Dynamic library and release Dynamic libraries cannot be mixed in projects ,debug Project must use debug library , release Project must use release library ;
Who allocates memory will release it , Do not use the dynamic library export function stl, Use only basic types or interfaces ;
4、 reference
dll stay debug and release How to cross reference in mode ? - You know
边栏推荐
- Major upgrade of openim - group chat reading diffusion model release group management function upgrade
- 职场3道坎:年薪30万、50万、100万
- opencv之打开摄像头、边缘检测
- ROS2自学笔记:RQT可视化工具
- Add dependent jar packages to the project in the idea
- 本周投融报:Web3游戏熊市吸金
- 合宙ESP32C3基于VSCode PIO Arduino开发框架初探教程
- Tips and tricks for Neural Networks 深度学习训练神经网络的技巧总结(不定期更新)
- Preliminary understanding of string
- 七月集训(第23天) —— 字典树
猜你喜欢

JS if the decimal is 0, subtract it, not keep it

MongoDB数据库+图形化工具下载安装及使用

食品安全|吃皮蛋会铅中毒?了解这几点后放心吃

Pyinstaller+installforge multi file project software packaging

SQL bool盲注和时间盲注详解

Pymoo学习 (3):使用多目标优化找到最优解的集合

Pymoo学习 (4): 多标准决策

Pymoo学习 (2):带约束的双目标优化问题

Major upgrade of openim - group chat reading diffusion model release group management function upgrade

ROS2自学笔记:RQT可视化工具
随机推荐
本周投融报:Web3游戏熊市吸金
Pymoo学习 (3):使用多目标优化找到最优解的集合
Ros2 self study notes: rqt visualization tool
虾皮二面:JVM内存布局你知道的都说一下?
Win11如何添加图片3D效果?Win11添加图片3D效果的方法
C语言基础篇 —— 2-4 指针的数据类型含义和强制类型转换的解析
Emgu CV3+C#图像处理(四):使用EmguCV获取摄像头、读取视频
How many common SQL misuses are there in MySQL?
股票历史数据下载接口汇总(动态更新)
【31. 走迷宫(BFS)】
[MySQL]一、MySQL起步
食品安全|喝鲜奶可能感染结核病?带你了解什么是牛奶灭菌
Wechat applet class binding, how to bind two variables
蓝桥杯真题:卡片[通俗易懂]
PHP 中 try-catch 和 if-else 语句的区别
常见模拟电路设计 一(含仿真):方波、三角波、正弦波的互相发生「建议收藏」
C语言·结构体(线性表入门)
MySQL中有几种常见的 SQL 错误用法?
UPC 2022暑期个人训练赛第12场(B 组合数)
小程序商城如何精细化运营?