In the code above, when I set the SSH console program window to be displayed, no text is shown in the window, but there is output in the QM output panel.
Is there any way to terminate the SSH process when the main program closes?
https://i.ibb.co/4Fvzd0c/A.gif
I tried adding the following code. The `EndThread` function doesn't work, and the `ShutDownProcess` function works when the main program runs normally, but it doesn't work when the main thread exits unexpectedly.
Is there any way to terminate the SSH process when the main program closes?
https://i.ibb.co/4Fvzd0c/A.gif
I tried adding the following code. The `EndThread` function doesn't work, and the `ShutDownProcess` function works when the main program runs normally, but it doesn't work when the main thread exits unexpectedly.