01-08-2018 04:33 AM
Hi:
I imported visa.framework into a objective-c project to control CMW500 in Mac OS via visa.
But unfortunately I found an issue : When no CMW500 connects to Mac, the App will crash; But the app works ok when a CMW500 is connected.
Through debug, I find the viOpenDefaultRM leads to App crash
My confusion is that why not the viOpenDefaultRM return fail but abort when no CMW500 is connected?
01-31-2018 01:03 AM
HI:
Made the error more descriptive by indicating that viOpenDefaultRM failed and giving the error code returned plus a description of the error. Added error reporting for Mac OS X. The VisaConfig application will correctly give an error message if viOpenDefaultRM fails or if it can't open the configuration file, etc. Then it will terminate gracefully.