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?
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.