Article Details
Id:19408
Product:finPOWER Connect
Type:FIX
Version:4.00.00
Opened:29/07/2022
Closed:01/08/2022
Released:21/12/2022
Job: J029270

WebView2 preventing finPOWER Connect from cleaning up its Windows Temporary files and folders

The finPOWER Connect business layer may generate temporary files.

These are stored under the Windows Temp folder (%Temp% from Explorer) under an \Intersoft\finPOWERConnect4 folder.

finPOWER Connect relies on these temporary files to store information for running sessions and when closing, it attempts to clean up after itself. WebView2 was preventing this from occurring as its files were locked at the time the files are being cleaned up.

Therefore, improvements have been made to the clean-up process which will attempt to remove previous session files. This involves writing "FolderToDelete.txt" files to the session folder where finPOWER Connect could not delete the entire folder - this indicates that next time the application closes to try and delete these files again. Additionally, when finPOWER Connect is in use it will also write a "KeepAlive.txt" file with the current database date and time periodically. When closing the application, finPOWER Connect will check existing temporary session folders and if the date in this Keep Alive file is older than 7 days then the session folder will be deleted.

This new behaviour will help prevent the temporary folder from growing, and existing session folders will be cleaned up more accurately.

NOTE: Any temporary session folders created prior to finPOWER Connect version 4 will NOT be automatically cleaned up. It is recommended that the temporary folder is emptied after upgrading to version 4. This can be done by deleting the contents of the temporary folder manually, or by running the "Disk Clean-up" Windows utility and selecting the "Temporary files" option.