LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Standard I/O window

I recently upgraded my application and created a distribution kit. When installed on another PC, the standard I/O window is appearing when I click a button. This button is not new, nor are any of the functions that relate to that button. The modifications were on another part of the program. How is it that I can get this window popping up like this? Is there a function that I'm using that causes it to display under certain circumstances?

Thanks.

Craig
0 Kudos
Message 1 of 4
(3,211 Views)
The most common reason I found for the Standard I/O window to appear is the use of the printf function. I use it sometimes for debugging purposes, but this leads to the window to appear in the EXE even if the 'bring standard I/O window to front whenever modified' in the environment options is not selected. Check in your program if you have some printf statement left and comment them out, then recompile the project.
A more elegant solution is to condition those printf statements to the result of InStandaloneExecutable() function, to display them only in the IDE environment and not in the EXE program.
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(3,211 Views)
Thanks for the reply. I can understand why the printf may do this. But I don't use them, even for debugging. And the sections that I modified definitely didn't have printf statements. But I'll look a little closer.

Craig
0 Kudos
Message 3 of 4
(3,211 Views)
Thanks for the reply. I can understand why the printf may do this. But I don't use them, even for debugging. And the sections that I modified definitely didn't have printf statements. But I'll look a little closer.

Craig
0 Kudos
Message 4 of 4
(3,211 Views)