From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, 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: 

How to work with DLL methods which raise an exception?

I've got to call a method from a DLL. This method might raise an exception if something goes wrong (i.e. hardware not found etc.). Whenever this happens LabView crashes with the well-known "Application Error" message box. Error code is always 0x0eedfade as this is a Delphi DLL.
The problem now is: how can I handle these exceptions in LabView or at least how can I prevent LabView from crashing? Is there a way to set a custom exception handler?

Thanks in advance for your help!

BTW: Using LV 6i and W2k
0 Kudos
Message 1 of 2
(2,553 Views)
You might want to write a wrapper DLL which does the exception handling (in Delphi, or elsewhere) and simply return an error code to LV. If you've written the DLL yourself, this should be easy, otherwise you have to create your own wrapper.

Good Luck
0 Kudos
Message 2 of 2
(2,553 Views)