Exception when Laptop goes to Standby
See original GitHub issueI see this Exception, when I come back to my Laptop after a while:
System.InvalidOperationException: Die Sammlung wurde geändert. Der Enumerationsvorgang kann möglicherweise nicht ausgeführt werden. bei System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) bei System.Collections.Generic.List`1.Enumerator.MoveNextRare() bei LibreHardwareMonitor.Hardware.Computer.Traverse(IVisitor visitor) bei LibreHardwareMonitor.UI.MainForm.Timer_Tick(Object sender, EventArgs e) bei System.Windows.Forms.Timer.OnTick(EventArgs e) bei System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
It is reproducable on my machine. So basically when I leave the laptop alone for a bit and some energy saving gets enabled.
I had the graph (plot), the main window and 2 tray temperature icons active.
I’m sorry that Microsoft shows the Exception in German language. It sounds like a collection got changed while iterating over it.
Issue Analytics
- State:
- Created 3 years ago
- Comments:22

Top Related StackOverflow Question
Please try the latest build, I managed to get the exception now also on my machine, it didn’t always occur.
This is indeed caused by the power change, but it could’ve happen in some other cases as well. I’ve committed a fix for it.