Highlighted
Established Member..
Established Member..
173 views

COM/DCOM script generation produces an AccessViolationException error

Hi all,

I am using Loadrunner 12.53 patch 1 to try and record a thick application that is built on DCOM. When I launch the applicaiton from the start recording menu, I can see the number of events increasing (and if I look in the log files later, I can see the events).  However when I stop the script and it tries to create the script I get an error (see attached screenshot). The error is very generic ("System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt") and I have seen lots of instances of it on this forum but not for this particular case. I am looking for some suggestions on how to fix this and get a script generated.

What I have tried so far:

1. Creating an HTTP/HTML script to see if it is just DCOM that has the issue. This script generation worked successfully.

2. Disable DEP and UAC.

3. Creating a winsocks script of this application, this worked successfully.

4. Identified the appropriate library files and added them to the recording options for DCOM.

5. Disabled C parser (this made no difference).

 

I am using LR 12.53 patch 1 on a virtual Windows 2012 R2 running on ESX.

If anyone can think of something I have missed or has any other suggestions please let me know.

 

Many thanks,

Gordon

0 Likes
3 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: COM/DCOM script generation produces an AccessViolationException error

Hello, 

 

this is Rodney. i hope you are fine, most of the times the porblems related with codegenerator are beacuse of missing Memmory in your system. 

can you monitor the CPU and memmory usage while generating the script? 

is there any app crash inside the enevts vierwer from microsoft, any dll or module after the crash?

 

all best!

 

 

HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
0 Likes
Highlighted
Established Member..
Established Member..

Re: COM/DCOM script generation produces an AccessViolationException error

Hi Rodney,

Thank you for the quick response. I have checked the events log and there are no errors or warnings being generated around this event.

The CPU spikes to about 60-70% during the code generation and there is over 3 GB of available memory at this point as well, so this does not look to be the cause of the issues.

What are the next steps you would recommend.

Thanks

Gordon

0 Likes
Highlighted
Established Member..
Established Member..

Re: COM/DCOM script generation produces an AccessViolationException error

Hi Rodney,

I have also had a new VM built (same spec) and get exactly the same error in it, no issues with CPU, memory or crashed apps being reported.

Thanks

Gordon

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.