11-27-2009 04:46 PM
Ok I normally use return FAILURE , which is defined as -1. to end the program. this case only happens when an condition fails for me.
EBALCI :
now that i think about it, Im not using in graphical user interfaces in my program, my code is a standalone automation code, so I dont i really need to be
using QuitUserInterface(); should I use exit(0); to end the program, Failure I want to shut the program down.
so what should i do in this case?
11-28-2009 03:07 AM - edited 11-28-2009 03:09 AM
I have no access to a CVI system now so I cannot confirm it, but I seem to remember to have read something like CVI implementation of exit () does not permit the command to pass the parameter back to the OS. You could go and read the online help: I may be wrong but if this is true a discussion on it has no sense at all.
*Edit*
I have found it on NI site:
Due to the way that this function is implemented, the exit status value entered into this parameter is ignored.
11-28-2009 03:15 AM