资产失败帮助,紧急! [英] Asseration Failure HELP, URGENT!!
问题描述
任何人都可以帮我处理我的代码,在我键入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屋!