At the event ‘open document’ I run a macro that loops in 5 second intervals for 3 minutes searching for files in a directory.
If I wait until the loop is finished then the document closes normally.
If I close the document before that 3 minutes is up Libre crashes with nothing other than a notice it crashed.
The crash report says a generic “Do to an error, LibreOffice has crashed” and where usually the crash report would say the name of the file that crashed there is nothing. The temporary file with the prefix “~” does not get removed.
This is an older version of LibreOffice, 7.042 on Windows 11.
Any ideas on how to interrupt that looping macro or handle the error before it crashes?