Runtime Error: Runtime thread.cpp

Hi, I have a Windows 64bit desktop application which has now been deployed across 38 sites over the last 6 weeks. We’ve had 3 or 4 occasions where a runtime error has popped-up referencing a “infinite loop detected in the thread scheduler” as shown below. I’m using Xojo 2025v2.1

My app does not explicitly use threads, apart from the Log4Xojo module which I believe uses threads during the process of writing to a log file.
It’s so infrequent that it’s impossible to reproduce and the unhandled exception code doesn’t catch it of course to get the stack dump I’ve coded for example. Anyone experienced this please or have any ideas how to debug?
Thanks

Remove the Log4Xojo Module and see if the issue goes away. Then you would at least know whether you can concentrate on the Log4Xojo module, or whether the error lies elsewhere.

Thanks - I had thought of that but as the app is relatively new, the logging is actually really useful for tracing a few teething issues at the moment. If I remove Log4Xojo, I might have to wait weeks to be confident that the error has gone away. It’s the most obvious way to try and narrow it down though I agree :slight_smile:

1 Like