LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

external lib call exits on error, which causes Labviews Solaris to exit completely.

I have an external lib which VI's make calls to.
When my function follows the error path, it makes a
call to another lib which does an exit(11).
This in turn causes Labviews 6.0.2 (Solaris 8).
I have the same libs on NT, and Labviews gives a popup
dialog with an error string.
Anyone know how to prevent Labviews from exiting???
I cannot change the 3rd library.
Thanks!
0 Kudos
Message 1 of 2
(3,002 Views)
....

> When my function follows the error path, it makes a
> call to another lib which does an exit(11).
> This in turn causes Labviews 6.0.2 (Solaris 8).
> I have the same libs on NT, and Labviews gives a popup
> dialog with an error string.
> Anyone know how to prevent Labviews from exiting???

You might try to install a signal handler. I don't remember the syntax,
but you have to have a C style function pointer, and you call something
like InstallSignalHandler.

You might want to install it, call the faulty function, then set it back
to its initial setting.

Greg McKaskle
0 Kudos
Message 2 of 2
(3,002 Views)