LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET unhandled exceptions in LabVIEW

Hello, everyone!

I try to build application in LabVIEW using .net FLIR thermal camera SDK. So everything works fine until I try to get an image. When I call .NET method to get an image, LabVIEW shuts down without any message.
I tried to debug it under windbg and caught the folowing exception: "(29d4.3d9c): Unknown exception - code c06d007e (first chance)". When LabVIEW under windbg or Visual Studio debuging it never shuts down.

 

Could anybody help me to catch .NET exceptions in LabVIEW without using external debuging tools? Maybe there are existing any suggestion about how to solve problem with the exception that mentioned above?

 

Info about my system:

Windows 10x64

LabVIEW 2015 SP1 f1 32-bit

LabVIEW 2015 SP1 f2 64-bit

 

Best regards,

Nikita

0 Kudos
Message 1 of 3
(3,233 Views)

It sounds like the external code you're calling is poorly handling an exception, causing the host (LabVIEW) to be thrown out by Windows.

 

Are you sure you're calling the .NET code properly? Are there any texct based examples you can translate into LV to prove the process? It might help ensure you are configuring the process fully before attempting to acquire images.

 

Unfortunately, there isn't a great deal more you can do if the .NET code is crashing out and pulling LabVIEW down with it. If you're adept with C# you could create wrappers to the .NET dll that capture exceptions, and call these wrappers in LabVIEW. This would protect you from the problem.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


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

Thanks for your reply!


Unfortunately, there very few information about this toolkit and no text based examples, so I'm not sure that .NET calling properly.
When I run LabVIEW under windbg and get mentioned above exception, I can fully manipulate recieved image and work with it.
I also thought about C# wrapper, but I hope to solve problem using LanVIEW. In any way, thanks for your advise.

 

Best regards,

Nikita

 

0 Kudos
Message 3 of 3
(3,208 Views)