09-26-2013 03:21 AM
I want to detect in my code is the code running in the release or debug mode. is there any inbuil function like in labview there is property node called application.kind to get the status of the code.
09-26-2013 03:25 AM
You could use the macro _CVI_DEBUG_ which is defined as 1 in debug configuration, see the help section on 'Predefined Macros'
09-26-2013 03:30 AM
This macro will not work if the build configuration is release mode, it can be used only for debug mode.
While building in release mode the CVI will throw an error saying undefined symbol "_CVI_DEBUG_"
09-26-2013 03:30 AM
09-26-2013 03:37 AM
So continue reading here
09-26-2013 03:46 AM
Thanks
09-26-2013 04:56 AM
There additionally is the function BeingDebuggedByCVI ()