LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with .NET DLL calling a "secondary" DLL

Solved!
Go to solution

 


@smercurio_fc wrote:

 

Please learn some patience. This forum is made up primarily of volunteers, many of whom (like myself) have full-time jobs and we cannot answer questions at the drop of a dime.

 

Now, as to your issue. Your problem is not with LabVIEW, but with basic C#. The following line in Class 2:

 

public Class3 temp;

does nothing. It's a declaration only. There is no creation of "temp". Thus, when you try to access temp.ConnectClass3() you would have gotten a .NET run-time error because the object doesn't exist. If you had wired the error handling I/O and placed an error cluster indicator you would have seen the error condition. If you change your line to "public Class3 temp = new Class3();" then the code will work.


 

Sorry, I wasn't trying to be impatient. The thread had fallen near the second page and I thought it may be overlooked. I realize you're on these forums because you probably have a passion for programming and/or LabView, so I don't expect you to reply in any specific time-frame whatsoever, and I appreciate any replies I do get.

 

Right after Tanya posted her most recent message I started debugging the DLL's using a simple console application. I quickly came to the same conclusion you just posted, and read your post right when I came to say I had solved it, lol.

 

Anyway, thank you for the help. Obviously I'm new to both C# and LabView, so learning both at the same time isn't the easiest thing to do.

0 Kudos
Message 11 of 11
(347 Views)