51Testing软件测试论坛
标题:
遇到Exception ACCESS_VIOLATION received的问题
[打印本页]
作者:
lihuaiyuan84
时间:
2008-11-17 15:11
标题:
遇到Exception ACCESS_VIOLATION received的问题
代码很简单
Action()
{
int ret;
lr_load_dll ("rtp_dll.dll");
ret=final();
lr_log_message("%d",ret);
return 0;
}
rtp_dll.dll是我用VC编译的动态链接库。
运行时就会报错
Virtual User Script started
Starting action vuser_init.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(7): Error: C interpreter run time error: Action.c (7): Error -- memory violation : Exception ACCESS_VIOLATION received.
Action.c(7): Notify: CCI trace: Action.c(7): final()
.
Action.c(7): Notify: CCI trace: Compiled_code(0): Action()
.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
有谁知道这个问题怎么解决?
作者:
archonwang
时间:
2008-11-17 15:30
不知道我说的对不对,感觉是ret的问题。
final()是否可以赋给ret?
int ret;
lr_load_dll ("rtp_dll.dll");
ret=final();
lr_log_message("%d",ret);
return 0;
[
本帖最后由 archonwang 于 2008-11-17 15:33 编辑
]
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2