| || |
function is causing a memory violation error.
can someone suggest me the correction??
Exactly what error are you getting?
Also, I think you may be missing something from the function call (i.e. the LAST parameter that marks the end of the attribute list, see below).
From the VUGen Help:
Saves dynamic data information to a parameter.
int web_reg_save_param ( const char *mpszParamName, <List of Attributes>, LAST );
mpszParamName A null-terminated string indicating the name of the parameter to create.
List of Attributes: The following attributes are supported: Notfound, LB, RB, RelFrameID, Search, ORD (also known as Instance), SaveOffset, Convert, and SaveLen. Attribute value strings (e.g. Search=all) are not case sensitive. Click here for a detailed List of Attributes.
LAST A marker that indicates the end of the attribute list.
You might want to check out the Knowledgebase on the Mercury Support Site http://support.mercuryinteractive.com.
"C-interpreter run time error: Action.c (44): Error -- memory violation : Exception ACCESS_VIOLATION received."
This is the exact error message i'm getting for the web_reg_save_param fuunction.
And the "LAST" parameter at the end of the attributes list in the function does'nt make any difference to the error.
Could you please paste the function web_reg_save_param i.e. whatever is inserted in your script ?
try using the ORD attribute to indicate which match on the page you want, such as "ORD=1" or "ORD=ALL" as appropriate. I have never observed a web_reg_save_param() with as few parameters as you note and it does nto strike me as unusual that such a configuration would fail.
Replace ineffective offshore contracts, LoadRunnerByTheHour
. Starting @ $19.95/hr USD.
Put us to the test, skilled expertise is less expensive than you might imagine.
Twitter: @LoadRunnerBTH @PerfBytes
This might not be the problem with web_reg_save_param.More often than not this "memory violation" error message comes when you have declared a variable of Array type and allocated some initial memory space, which is not sufficient for the value that this array variable is going to hold.If you indeed have used some array variable(s), try to increase the size of the variable(s).
Hope this Helps,