lr_xml_get_values("XML={xmlcontent}", "ValueParam=Counter**ID", "Query=/counter**/code");//这步会出现错误提示:Error: C interpreter run time error: Action.c (334): Error -- memory violation : Exception ACCESS_VIOLATION received
lr_output_message(lr_eval_string("Query result = {Counter**ID}"));//由于上步的错误,没运行到此步骤就推出了
[ 本帖最后由 skyzhu 于 2010-8-10 17:41 编辑 ]作者: keome 时间: 2010-8-10 17:17 标题: 谢谢大家,问题解决了 我上网查了一下
Exception ACCESS_VIOLATION
Web (HTTP/HTML) scripts in LoadRunner are implemented using C programming language. And like always with C, you should remember about some basics. One of them is that few string handling function can return NULL value instead of correct pointer which will definitely lead to exception like the one below:
1.Action.c(7): Error: C interpreter run time error: Action.c (7): Error — memory violation : Exception ACCESS_VIOLATION received.
Basically if you see message like this, it is not any internal LoadRunner error. It means that you made a mistake in your script and you need to fix it.