If there is no connection, it should prevent from start any new query execution.
Access violation while not conected
With the latest build of HeidiSQL, there should be no situation in which there is no connection with a focused main window. I suppose you did not test that with the latest build.
Please login to leave a reply, or register at first.