Recently while recording a script on LoadRunner 9.0, I got a Microsoft Visual C++ Runtime Library “Runtime Error” on the program C:Program FilesInternet Exploreriexplore.exe as shown below.
qtp_visual_c  _error
I did a a Google search for this error and found that many people who have either upgraded to QTP 9.5 from 9.2 or are using LoadRunner have encountered the same error. Some hit and try revealed that BHO(Browser Helper Object) is the culprit. I would not go into details about what BHO is. For our sake, “BHO is a small program that runs automatically every time you start your Internet browser. Usually, a BHO is installed on your system by another software program.” You can read details here.
Here are the steps to recover from this error:

  1. Go to IE–> Tools > Manage Add-ons
  2. Select “Add-ons currently loaded in Internet Explorer” (In case it is not selected by default)
  3. Check for “Browser Helper Object” under “Type” column
  4. Select and disable them one by one with the help of “Disable” radio button given below.
  5. Record/Run your script to verify whether your problem is resolved.
  6. If it is resolved, you should be sure that BHO is indeed the culprit.
  7. Now you need to pin point the name of add on responsible for this error.
  8. One by one start enabling the BHO add-ons, disabled above, repeating step 5) each time.
  9. Wherever you encounter the previous error that’s the problem causing add-on.
  10. Simply disable that add-on and enable all others( As they might be helpful in other programs running on your system).

Let me know through the comments below if this article was helpful.

Update: If you get the same error message while trying to identify a radio button, apply HP patch QTPWEB_00003Prevent Internet Explorer Crash During QuickTest Identification of Radio Button

Thanks Jimmy, for the update.

If you want to keep track of further articles on QTP. I recommend you to subscribe via RSS Feed. You can also subscribe by Email and have new QTP articles sent directly to your inbox.

Please use QTP forum for posting QTP questions.

If you want to keep track of further articles on UFT (QTP). I recommend you to subscribe by Email and have new UFT articles sent directly to your inbox.

Subscribe to get free updates on UFT!

LearnQTP is the most popular site on UFT (formerly QTP).

Enter your first name and email address below to instantly subscribe and download an eBook on Optimizing UFT Scripts. In future, we will make sure you get new tips & tricks on UFT delivered direct to your email box.

Please check your email and confirm free subscription!