Out of memory error
Using
https://pastebin.com/XjsE9BuJ
AForge.Video.DirectShow to integrate a QR Code scanner in my WPF App but whenever the scanner is open it crashes in 15 seconds due to out of memory error as it reaches 4gb memory usage and I'm not able to exactly pinpoint the reason why its happening, BitmapToImageSource() throws the out of memory error.https://pastebin.com/XjsE9BuJ