zxing-js / library

Multi-format 1D/2D barcode image processing library, usable in JavaScript ecosystem.
https://zxing-js.github.io/library/
Apache License 2.0
2.51k stars 547 forks source link

Memory leak in winforms C# #622

Closed ahmedtalaat327 closed 1 month ago

ahmedtalaat327 commented 1 month ago

Describe the bug I cant end the thread even if uses : SignalToStop() func.

this is a piece of code 👍

`

private void Exitcamera() { videoCaptureDevice.SignalToStop(); // FinalVideo.WaitForStop(); << marking out that one solved it //videoCaptureDevice.Stop(); videoCaptureDevice.NewFrame -= new NewFrameEventHandler(VideoCaptureDevice_NewFrame); // as sugested videoCaptureDevice = null; }

`

Expected behavior the thread must end but when I try to exit the window application the app still in processes

Desktop (please complete the following information):

screens: Screenshot 2024-10-13 001447 Screenshot 2024-10-13 001421