From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
I am using a 3rd party DLL which writes some debug messages to the stdio window. Now if the user closes the stdio window (using the x button on the stdio window), my CVI 7.0 application gets killed.
In my CVI application, I am handling the Main panel's closing but is there any way to handle stdio window's events?
If you're thinking about catching console events, try using the SetConsoleCtrlHandler to catch the console close event. make sure to include windows.h at the very top. You would need to have the Windows SDK for CVI installed for this. Check out link for more information on the function.