Error during TruClient replay: Unresolved symbol : sprintf

  • KM02602026
  • 24-Oct-2016
  • 24-Oct-2016

Summary

Error during TruClient replay: Unresolved symbol : sprintf.

Error

The following error is received during a replay of TruClient script that contains custom C++ funcitions:

C-functions.c (16): Error -- Unresolved symbol : sprintf [MsgId: MERR-205177]

Cause

The issue is caused by a bug in LoadRunner 12.53. It works in the previous versions.

Fix

To fix the issue:

  1. Download and extract the LrTcMdrvApi.dll file 
  2. Backup the LrTcMdrvApi.dll under %lr_path%\bin (by default, it should be C:\Program Files (x86)\HP\LoadRunner\bin)
  3. Copy LrTcMdrvApi.dll to %lr_path%\bin and OVERWRITE the one already there.
  4. Run the script