C++ dll failed to load

Tags:
Question ID: 110324
0
0

Hi Team,

I am trying to load C++ dll but it is failing with error:

Action.c(6): Error: C interpreter run time error: Action.c (6): Error — File error : LoadLibrary(Medtronic.CareLink.Performance.TestPlugins.ToolAgnostic.NativeWindowsWrapper.dll) failed : The specified module could not be found.

Refer to snapshot for the script and error msg.

 

Attachments:
Marked as spam
Posted by (Questions: 1, Answers: 1)
Asked on April 28, 2022 2:20 pm
20 views
Issue resolved after building the C++ dll with release configuration instead of debug. Thanks for the response.
( at May 2, 2022 5:17 pm)
Answers (2)
1
Private answer

Unfortunately, the script "Extra file" does not support .dll files. The red X tells you that file type is not support in the "extra files"

The following are examples of valid file types that can be added as extra files:

.ws, .h,.c., dat, .ini, .vbs, .java, .js, .txt, .tux, .rec, .msc, .vdf, .xml, .xsl, .dtd, .html, .htm

 

Ref: https://admhelp.microfocus.com/vugen/en/2022/help/WebHelp/Content/VuGen/UI/solution_explorer_pane.htm?Highlight=extra%20files

Please review the lr_load_dll  help site for detail about this Loadrunner function

Marked as spam
Posted by (Questions: 12, Answers: 379)
Answered on May 2, 2022 4:42 pm
Issue resolved after building the C++ dll with release configuration instead of debug. Thanks for the response.
( at May 2, 2022 5:17 pm)
0
Private answer

You could print out the return code to get a little more specific information.
Place this inside the if, and before the return:

lr_message("return code = %d", result);

The lr_load_dll function returns 0 on success, 10 if an out of memory condition resulted,
or 11 if the file was not found.

It appears that the dll file is not found.
I base that on the red x next to the file in the Extra Files node in your solution tree.

Marked as spam
Posted by (Questions: 0, Answers: 5)
Answered on April 29, 2022 12:04 pm
Issue resolved after building the C++ dll with release configuration instead of debug. Thanks for the response.
( at May 2, 2022 5:17 pm)
EyeOnTesting