51Testing软件测试论坛
标题:
EXCEPTION_ACCESS_VIOLATION错误怎么解决?
[打印本页]
作者:
czaoth
时间:
2007-1-24 16:43
标题:
EXCEPTION_ACCESS_VIOLATION错误怎么解决?
用winsocket测试
脚本如下:
r_start_transaction("EnterStage");
lrs_get_buffer_by_name("buf8", &buf, &size);
checkid = 2;
memcpy( buf + 24,(char*)&checkid,4);
lrs_set_send_buffer("socket1", buf, size);
lrs_send("socket1", "buf8", LrsLastArg);
lrs_free_buffer(buf);
lrs_receive("socket1", "buf9", LrsLastArg);
lrs_send("socket1", "buf10", LrsLastArg);
lrs_receive("socket1", "buf11", LrsLastArg);
lr_end_transaction("EnterStage", LR_AUTO);
lr_think_time(1);
lr_start_transaction("EnterRoom");
lrs_get_buffer_by_name("buf12", &sendBuf, &size);
checkid =4;
memcpy( sendBuf + 24,(char*)&checkid,4);
lrs_set_send_buffer("socket1", sendBuf, size);
lrs_send("socket1", "buf12", LrsLastArg);
lrs_free_buffer(sendBuf);
lrs_receive("socket1", "buf13", LrsLastArg);
lr_end_transaction("EnterRoom", LR_AUTO);
运行到lrs_send("socket1", "buf12", LrsLastArg);时报错 Error: An exception was raised while calling invocation function in interpreter extension cciext.dll: System Exceptions: EXCEPTION_ACCESS_VIOLATION.
但我把EnterStage这个事务处理删掉只处理EnterRoom时没有报错,单独处理EnterStage也不报错。
各位帮我看看这是什么原因?
作者:
czaoth
时间:
2007-1-25 11:15
标题:
回复
lrs_set_send_buffer只能用一次吗?
作者:
dandan
时间:
2007-1-25 11:38
关注一下............
作者:
czaoth
时间:
2007-1-25 14:27
标题:
继续问?
Error : Unable to translate buffer to socket1. Error code : 9013.
是什么错误?
作者:
czaoth
时间:
2007-1-26 15:53
标题:
问题解决
用了loadrunner8.0就没有这个问题了
作者:
xiaosan616
时间:
2008-1-10 15:11
为什么我的loadrunner分析器老是报错啊?
作者:
femir
时间:
2012-5-20 20:45
学习 顶帖求解
作者:
femir
时间:
2012-5-20 20:46
学习 顶帖求解
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2