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
35 views
0
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)
2
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: 384)
Answered on May 2, 2022 4:42 pm
0
Issue resolved after building the C++ dll with release configuration instead of debug. Thanks for the response.
( at May 2, 2022 5:17 pm)
2
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: 1, Answers: 7)
Answered on April 29, 2022 12:04 pm
0
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

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top