https://bugs.documentfoundation.org/show_bug.cgi?id=172715
Rick H <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |UNCONFIRMED Ever confirmed|1 |0 --- Comment #2 from Rick H <[email protected]> --- Per your request for more info: I am running LibreOffice v25.2.7.1 on Windows 11 (X86_64) (but I have experienced this failure in all versions of LO for several years now. I'm finally reporting it.) Reproducing this bug will be hard, since I'm not sure what triggers it. Best option is probably to look deep in the code for Wait to see how it could possibly return immediately without a delay. What internal LO condition could cause this? Today I was able to catch this intermittent condition by stopping and starting the loop a couple of times. Consider this diagnostic code I added calling GetSystemTicks() to verify that Wait is failing: --- Do While isRunning LoadData Do While TimerDecrement() < GetTimerInterval() Dim lTick As Long lTick = GetSystemTicks() if isRunning Then Wait 1000 lTick = (GetSystemTicks() - lTick) if lTick < 1000 Then REM REM A breakpoint placed at the following line hit and showed lTick = 0 REM instead of lTick >= 1000... MsgBox "" & lTick & " Ticks" ,0,"ERROR: Short Wait in RunWithRefresh()!" isRunning = False GoTo ExitBothLoops End If Else Exit Do End If Loop If GetTimerInterval() <= 0 Then Exit Do Loop ExitBothLoops: ---- Regardless of any other logic in my macros, the call to "Wait 1000" should always cause a delay of one second, shouldn't it? -- You are receiving this mail because: You are the assignee for the bug.
