LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Assertion failed while using Labview ActiveX functions to communicate with DLLs

Solved!
Go to solution

Hello,

 

I am looking for any suggestions and advices regarding the following error that I get when I use Labview's .NET functions to communicate with DLLs written in .NET environment. I just need a starting pointer on where can I look for the origins of this error. I am a newbie in . NET.

 

Assertion failed 

 

I am also attaching the .vi that I use, if that's of any help. Any suggestions are welcomed!  Thank you.

 

 

0 Kudos
Message 1 of 3
(2,968 Views)
Without the actual .NET assembly it's next to impossible to help you, and even with it it's going to be difficult if the assembly does something with hardware. It appears that you're trying to set up some sort of callback. Usually with an assertion you have to work your way backwards in the call stack that's shown to find the problem. Can the assembly be called OK from a .NET environment, like C# or VB.NET?
Message 2 of 3
(2,949 Views)
Solution
Accepted by topic author Filipp
I found the origin of the error after studying the examples provided by the NI on .NET. The Callback function had to be moved out of the loop, which resolved the problem.
0 Kudos
Message 3 of 3
(2,932 Views)