From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

.NET event based dll crashing while integrating with LabVIEW

I have a dll which is comprising of some publisher and subscriber methods. My dll code is such that if any new message is received ,it will generate event and jump to subscriber method.

Now when I am using that dll in Lab view and event is occurred ,Lab view gets crashed.

 

So  I Need help in working/integrating the events within the dll's into Lab view.

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

You're not giving us much to go on. "A .dll crashes LabVIEW"...

 

Does it work (not crash) in C#?

What does LV have to do with these events?

Are you attempting to make a consumer in LV with a producer in the DLL?

Do you get a crash report\error message or anything?

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

Yes, unfortunately a vague question will only get you a vague response. Here's the information that would help us:

  • LabVIEW version and bitness
  • OS version and bitness
  • An example LabVIEW project/VIs that demonstrates your issue along with the dll
  • Preferably; the source code for the dll however we can typically reverse-engineer this.

There are some caveats integrating .NET assemblies into LabVIEW and a few gotchas around using event handlers. but we can give you better guidance if you help us to help you.

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