05-09-2012 08:24 AM - edited 05-09-2012 08:26 AM
Colleagues (mostly from National Instruments),
The following code with IMAQ Read Custom Data throws C++ EH exception (once per second in this case):
The reason is that the key named "TEST" is not exists.
Well, this is first chance exception which is correctly handled internally in VDM, but makes some troubles for debugging of my app.
Workaround is easy - call IMAQ Get Custom Keys, check if Key exists or not, then call IMAQ Read Custom Data only for existing key.
I just would like to notice that the Exceptions aren't a control mechanism, they generally reserved for truly exceptional circumstances (and missing key is not this case from my point of view).
There are also seems to be some rare exceptions throws during drawing in Vision Display.
Would be nice if this behavior will be changed in next release...
Andrey.
05-11-2012 08:24 AM