LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error code 42 from Call Library Node

I get this error code when calling into a DLL via the Call Library Function node.

 

The description isn't very helpful.

 

Any idea what it means?

 

Thanks...

-Umar.

 

0 Kudos
Message 1 of 6
(3,895 Views)
Since the description for that error is "Generic Error", it could mean anything, and it depends on what your code was trying to do. Which was what, exactly?
0 Kudos
Message 2 of 6
(3,893 Views)

I was calling a function in a dll.  The calling convention was C.  There were no parameters, and a unsigned 32 bit return value.

 

The Call Library Function successfully found the functions exported from the DLL since they were present in the pull

down menu in the configuration window.  I am passing the path to the dll via a terminal on the Call Library Function node.

 

I think that is all relevant info.

 

Anything I'm missing?

 

Thanks...

-Umar.

 

0 Kudos
Message 3 of 6
(3,888 Views)
Well, that more information, but not quite enough to pinpoint the problem. Smiley Wink What does the function do? Can anyone run this DLL, or is it hardware-specific? If anyone can run it, can you upload the code? Have you verified the function works by calling the DLL from another programming environment, like C? Does it work if you don't specify the path to the DLL on the block diagram?
0 Kudos
Message 4 of 6
(3,881 Views)

Ah...

 

It is HW specific, so you won't be able to run it.

I got this DLL from someone else and I don't have the source code, but

I know he has tested it and it does work.

 

I'll try it without passing in the dll path, and I'll get answers for your other questions.

 

Thanks...

0 Kudos
Message 5 of 6
(3,855 Views)

Other possibilities: Does the DLL depend on other DLLs? Are those private DLLs? If so, are they in the same directory so they can be found, or are they in the Windows\system32 folder?

 

As you can see, there are many possibilities...

0 Kudos
Message 6 of 6
(3,853 Views)