资产失败帮助,紧急! [英] Asseration Failure HELP, URGENT!!

查看:117
本文介绍了资产失败帮助,紧急!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮我处理我的代码,在我键入sytax [pS8Sim-> ExecVL(OutputString);]时会导致资产失败。我差点尝试其他方式仍然无法工作..请查看我的代码并告诉我你的建议。在这个
Cpp文件中,我创建了这个函数来获得关于时间的离散事件结果。但是正如我之前提到的,当我添加语法[pS8Sim-> ExecVL(OutputString);]时,我收到了错误(Debug Asseration Failed)

解决方案

< blockquote>

为什么不调试你的代码。您是否尝试过进入功能内部?您是否检查过pS8Sim是否包含有效地址?当您执行CoCreateInstance()时,最好检查fcuntion的返回值 喜欢if(SUCCEEDED(hresult))
这样你就可以知道功能是否成功  。你能用
ExecVL()



谢谢


Can Anybody Please help me with my code, It cause Asseration Failure at the moment I type the sytax [pS8Sim->ExecVL(OutputString);]. I almost try every other way and still doesn't work.. please have a look on my code and tell me your suggestions. In this Cpp file I've created this function to get discrete events result with respect to time. However as I mentioned before, when I add the Syntax [pS8Sim->ExecVL(OutputString);] I got the error (Debug Asseration Failed)

解决方案

Why not Just Debug your code . Did you tried step in inside your function . Did you checked out whether pS8Sim contain valid address or not. When you Do CoCreateInstance () it is always good to check return value of the fcuntion  like if(SUCCEEDED(hresult)) so that you can come to know whether function succeeded or not  . Can you Show your Function decleration and def for ExecVL()

Thanks


这篇关于资产失败帮助,紧急!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆