This solved an issue I have with an assertion failure when calling waitonmouseevents in fortran2025. However, it also disable by break points.