When recording a DB2CLi application, VuGen.exe crashes half way into the recording

When recording a DB2CLi application, VuGen.exe crashes half way into the recording

Problem

When recording a DB2CLi application with VuGen, VuGen.exe crashes half way into the recording

Cause

This could happen if the application is running under multithreaded mode and the process tree involves input from multiple processes during recoding. There is a known limitation within LoadRunner where the database record/replay solution within VuGen does not support multithreaded applications however there is a workaround available

Fix

Here are the suggested steps to make VuGen recording thread-safe:

Replace the file <Install_drive>:\Program Files\HP\LoadRunner\bin\dbir32.dll with the attached dll dbir32

Edit the file <Install_drive>:\Program Files\HP\LoadRunner\config\vugen.ini and add a new line "THREAD_SAFE=1" under [Inspector] section as shown below:

1. [INSPECTOR]

2. TRACE_FILENAME=C:\Documents and Settings\dpereir_infosys\Local Settings \Temp\noname21\data\sqltrace.txt

3. TRACE_LEVEL=3

4. ASCII_LOG_LEVEL=6

5. THREAD_SAFE=1

Restart VuGen and record the application again

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s