12-11-2019 06:09 AM
Hello,
today I used the DebugPrintf command to compare two different numbers obtained by two different routines and was quite surprised to not only see these two numbers: before that line there were several lines of text, see attached screenshot.
Where do these text lines come from and what do they mean?? Definitely it is not from my code...
Thanks in advance!
Solved! Go to Solution.
12-11-2019 10:28 AM
No, it's not your code!
As far as I can understand some system or CVI library has some debug output that is trapped by CVI IDE and shown in Debug Window. Similar debug messages are added by each call to FileSelectPopup and FileSelectPopupEx. AFAIK there is no way to exclude prevent them from appearing in the debug window
12-11-2019 11:18 AM
Thanks, Roberto, this also was my understanding - so why does CVI capture debug output from 'outside' system processes since this information seems not useful for us users?
12-12-2019 07:07 AM
It's possible that CVI declares itself as a debugger for every existing process; the symmetric of it is that debug messages from CVI executables can be captured by external applications like DebugView.
12-19-2019 03:58 AM
so if there is no way to prevent all these "other" messages the solution for me is to not use DebugPrintf but use printf instead
12-19-2019 10:54 AM
Indeed if you are callikng FileSelectPopupEx your debug window will be flooded with error messages that you cannot avoid. For this reason I sometimes tailored my code this way:
#ifdef _CVI_DEBUG_
r = FileSelectPopup (...);
#else
r = FileSelectPopupEx (...);
#endif
if (r == VAL_NO_FILE_SELECTED) return 0;
in order to give the final user the up-to-date look and feel of FileSelectPopupEx avoiding to be bothered while developing 😉