memory violation : Exception ACCESS_VIOLATION received : When substituting correlated value

70 views
Skip to first unread message

Ajay Francis

unread,
Nov 25, 2014, 12:29:15 PM11/25/14
to LR-Loa...@googlegroups.com
Hello All,

I am getting memory violation error when try to execute one web_submit line where I am using two correlated parameter. (size is pretty big. ViewstateParam= 170524 characters, Eventvalidation Param =10420 characters).

I have set  param length as:
   web_set_max_html_param_len("99999");

Line of code :
     web_submit_data("XXXXX", 
        "Action=URL", 
        "Method=POST", 
        "RecContentType=text/html", 
        "Referer=URL", 
        "Snapshot=t60.inf", 
        "Mode=HTTP", 
        ITEMDATA, 
        "Name=__EVENTTARGET", "Value=", ENDITEM, 
        "Name=__EVENTARGUMENT", "Value=", ENDITEM, 
        "Name=__VIEWSTATE", "Value={Cor_ViewState1}", ENDITEM, 
         "Name=__SCROLLPOSITIONX", "Value=0", ENDITEM, 
        "Name=__SCROLLPOSITIONY", "Value=23", ENDITEM, 
        "Name=__EVENTVALIDATION", "Value={Cor_EvenT1}", ENDITEM,         
        "Name=ctl00$ContentPlaceHolder1$btnCancelApprovalFlow", "Value=Cancel", ENDITEM, *
        "Name=ctl00$ContentPlaceHolder1$txtApproverComments", "Value=", ENDITEM, 
        "Name=ctl00$ContentPlaceHolder1$txtCommentHistory", "Value=", ENDITEM, 
        "Name=ctl00$ContentPlaceHolder1$hdnLastTab", "Value=0", ENDITEM, 
        "Name=ctl00$ContentPlaceHolder1$hdSelectedCategoryUser", "Value=", ENDITEM, 
        LAST);

Error line :
Action.c(501): Error: C interpreter run time error: Action.c (501):  Error -- memory violation : Exception ACCESS_VIOLATION received.

James Pulley

unread,
Nov 25, 2014, 4:47:32 PM11/25/14
to LR-Loa...@googlegroups.com
99,999 < 170,524

yathish kumar

unread,
Dec 1, 2014, 8:04:41 AM12/1/14
to LR-Loa...@googlegroups.com
Check this method, 

char val[180,000];


web_reg_save_param(val, "LB........);

web_request ( .................)

lr_save_string("val1", lr_eval_string("{val}"));

for substitution use val1..

Thanks,
Yathish

--
You received this message because you are subscribed to the Google Groups "LoadRunner" group.
To unsubscribe from this group and stop receiving emails from it, send an email to LR-LoadRunne...@googlegroups.com.
To post to this group, send email to LR-Loa...@googlegroups.com.
Visit this group at http://groups.google.com/group/LR-LoadRunner.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages