Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69116

Problem in calling LabVIEW DLL with C#

$
0
0

Dear All,

 

I compiled a few DLLs in LabVIEW and called these DLLs using C#.
I'm having difficulty in passing in strings and arrays as input and output of the DLL.

Whenever i try to show the string i input in a dialog box(This part is written in LabVIEW DLL), a LabVIEW message dialog would appear and the program just stucked there.

Whenever i try to input a string or an array to the DLLs, Microsoft Visual Studio would display "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."


I attach the vi's and also the C# .sln file.


Can you guys please advise where did i go wrong? 

Thank you very much.


Viewing all articles
Browse latest Browse all 69116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>