串口程序,出现debug assertion failed

glacier123 glacier123 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
使用MSComm控件做的一个读串口数据,进行分析的小程序,但数据是实时大量数据,持续接收的。
直接运行程序正常,但在界面被网页或其他程序覆盖或显示时,弹出“debug assertion failed”.点“忽略”,则可以继续使用软件。

as following:
````````````````````````````````````````````````````````
Debug Assertion Failed!

Program: ..path...\xxxx.exe
File:afxole.inl
Line:277

For information on how your program can cause an assertion failure, see the visual c++ documentation on asserts.



:查看堆栈,怀疑是COleSafeArray类型变量的问题, 大侠们给予指点,谢谢了!
...全文

相关推荐

评论 24
收藏 已收藏
分享
返回顶部
glacier123
网络编程 18,356 成员 64,161 内容