You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok, didn't expect you're using the sample 1:1
I would assume the bug lies around here as there is no point in code where _leds is set to null which could potentially result in a double free of the native handle. However, the dispose pattern is implemented very bad in general. There is no differentiation between native stuff and managed objects. Also the finalizer is missing. Sadly I'm currently busy moving to a new flat so I don't have time to fix it properly. My current advice would be to avoid disposing the strip. Also, disposing is not needed when the program terminates afterwards.
when I run the sample code, the HAT lights - the wrong colour and crashes with this error... PI3 .net core 3.1
The text was updated successfully, but these errors were encountered: