Hello everyone, got another weird one for you. Any ideas why Thread.Sleep would be causing 100% CPU usage?
Basic Raspberry Pi 4 ARM desktop app with a thread added to Window1 with:
Sub Run() Handles Run Do System.DebugLog("Test!") Me.Sleep(1000) Loop End Sub
and "Thread1.Run" in Window1's open event.
Am I doing something wrong? I would expect this to basically do nothing? Funny thing is that running other stuff in for say the event loop, will cause the CPU usage to go down. I did check that it is actually waiting 1000ms with the call to System.DebugLog.
Any help would be very much appreciated!