Closed SimoFiuz closed 2 years ago
Thank you for your report. I will add some code to handle this exception and collect new counters again when it happens.
I ran the software in debug in visual studio for a couple of minutes and then closed my laptop's lid but at wake up it raised no exception. Maybe I need it to go in deep sleep or something. I'll try again tonight. Anyway that section needs some exception handling for sure. Thanks Leandro.
I have just committed some code to try and fix this problem. If you are successful reproducing the problem, could you pull the latest source and retry to see if the bug is gone? I will try it too with my laptop this afternoon.
Sure!
This problem should go away on this new version 0.3.3, let me know if it still persists, please.
I will and thanks again.
After waking my laptop from sleep, I got the following:
Basically it says it can't find the broadband adapter. The code threw an unhandled exception not allowing me to do anything else besides killing explorer. My guess after a quick peek at the source is that for some slow (?) to respond hardware the enumeration in
TaskbarMonitor.Counters.Update()
still tries to access some counter no more existing in itsList<PerformanceCounter> netCountersSent
; I'll try to reproduce the issue while debugging.