I want to catch an exception (or something else) when my program is killed by the kill command from the operating system.
kill
I want to send a message to the log file before closing.
Is there any way to do this?
thanks
Try adding a terminating call.
Source: https://habr.com/ru/post/1399001/More articles:User context menu - c #How to update a table using compound keys using Massive ORM? - massiveWinRT and Win32 Compatibility - windows-runtimeAcceleration of an object. - c ++Google SpreadSheet - Processing MM: SS.sss time formats - timehttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1399002/how-to-refresh-accesstoken-in-oauth-20-in-salesforce&usg=ALkJrhifEY5LygiWvj7qeIQrfj5Bm-BweAhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1399003/forcing-single-thread-access-to-a-resource&usg=ALkJrhgjh3f8fYTgkWHGNxQPSUyWSvKfcwPHP Symfony 1.4 - the best way to transfer data from an action to a component? - phpMagento using addVisibleInCatalogFilterToCollection returns nothing when it should not - visibilityHow to run a batch file minimized on a Windows CE device (using a different batch or shortcut)? - windows-ceAll Articles