LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -2147221480 occurred at Building DLL stub

When I build a Shared Library, I get following error message

Error -2147221480 occurred at Building DLL stub.
This can be caused by illegal function or parameter names. Please verify your names are legal C identifiers and do not conflict with LabVIEW headers

This error code is undefined. No one has provided a description for this code, or you might have wired a number that is not an error code to the error code input.

Can anyone help me out regarding this error...
0 Kudos
Message 1 of 10
(3,715 Views)
To begin with, do didn't say whether you have checked the two possible errors listed in the error message:

1) the function and parameter names are legal C identifiers
2) the function and parameter names do not conflict with LabVIEW headers

How many functions does your DLL have? What are their names?
What parameters do the function(s) have? What are their names?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 10
(3,711 Views)
HI,

Well my dll has one function

Function Name: PeakDetect
Input Parameters: double[], double[]
Output Parameter: double[].
0 Kudos
Message 3 of 10
(3,693 Views)
Try changing the name of the function itself to something like MyPeakDetect - anything that it would be less likely that NI would have one named the same. Also what are the names of the parameters?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 10
(3,689 Views)
Well I tried changing the name of function...But i get the same error...

Parameter names as
Input Parameters :XArr,YArr
Output Parameters: OutArr
0 Kudos
Message 5 of 10
(3,678 Views)
Ok, now try changing the parameter names to something unlikely.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 10
(3,676 Views)
Did it...Again same error
0 Kudos
Message 7 of 10
(3,669 Views)
The last test, what did you rename everything to?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 8 of 10
(3,661 Views)

Dear Nileshv,

Make sure you don't have more than one control with the same name. Some controls might be hidden from the front panel (if you chose that option).

 

Kalin T.
0 Kudos
Message 9 of 10
(3,647 Views)

Hello,

 

I got the same error, and also I tried creating a new labview project, with a simple vi that passes only the input value to the output. I suscpect is something with the LabVIEW installation, since I tried in the same computer but inside a virtual machine running a different labview version, basically the same labview project and it was builded without problem.

I'm opening a SR, I will share the results.

Guillermo Oviedo
R&D Software Engineer
CLA | CTD
0 Kudos
Message 10 of 10
(2,583 Views)