From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A .net constructor throws an exception. Assembly problem?

Hi!
I am new to this forum and LabView in general.

 

I am having a trouble with an .net constructor. I am calling a .DLL file with the Constructor Node. I get a "Error 1172....A .NET exception occured in an external assembly." I have installed the .DLL file to the GAC and I have verified in the View/.NET in Assemblies tool that the .DLL file is linked correctly.

 

My goal is to use a function called groupCommand() that I get from the SMBusAdapter constructor. What is interesting is that I have got other functions from the same .DLL file to work.

 

Can someone please give me some guidance. I attached the files I am using and there is also the GAC installer.

 

(I am running LabView 2011 on Windows Vista)

 

Attached files:
TIDP.SAA2.dll - the .dll file

group.vi - the file where the problem is.

send_byte.vi - A file where I got the .dll file to work with another function.

 

Thanks.

 

 

0 Kudos
Message 1 of 3
(2,101 Views)

A constructor should be called only once.

 

0 Kudos
Message 2 of 3
(2,083 Views)

Of course, but I am only calling the constructor once.

0 Kudos
Message 3 of 3
(2,081 Views)