LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with callbacks for remoting .NET

Hello. I'm testing the remote .NET example application available in the NI website
https://forums.ni.com/t5/Developer-Center-Resources/Inter-Application-Communication/ta-p/3523015

the purpose of this application is to establish communication between 2 applications through a .net class

It works very well but the labview clients only use event structure with timeout, and not .net events

I've noticed events are defined in the remote .NET class and I would like to use it despite of event+ timeout (image of event definition below)

Sans titre1.png

thus I'm implementing those events in labview below:

Sans titre2.png
but it doesn't work. error below:
Sans titre3.png

translation:

"error 1172 occured in : save callback

A .NET exception occurred in an external assembly"

 

do you have any idea of the problem?

Pierre FCentum TNS, Grenoble
Certified LabVIEW Associated Developer
0 Kudos
Message 1 of 2
(1,820 Views)

Hello Pierre_F,

 

This exception error is thrown when attempting to access a file that does not exist on disk.

To resolve this error, try the following:

 

1. Ensure you're building your assembly as well as all other libraries in "release" mode

 

2. If your assembly calls another c++ ensure you have installed Visual C++ Redistributable for Visual Studio 20xx before attempting to run.

 

Have a nice day.

Regards,

Clement Dekeyser

0 Kudos
Message 2 of 2
(1,755 Views)