Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to do shrink memory when capturing from WebCam to WPF #135

Closed
fiery9711 opened this issue Feb 28, 2024 · 2 comments
Closed

How to do shrink memory when capturing from WebCam to WPF #135

fiery9711 opened this issue Feb 28, 2024 · 2 comments
Labels
question Further information is requested

Comments

@fiery9711
Copy link

Hi everyone, I'm new user this library, thanks for all who made it. But i have problem when i use webcam and set image to WPF my program size grows up to 2-3GB RAM memory how i can solve this problem?

@flat-eric147
Copy link

I use FlashCap with WPF and I don't see such behavior. Being .net, perhaps it's not doing garbage collection, you might try to trigger the garbage collector explicitly and see if the situation improves. Perhaps also share some of your code? How does the WPF sample behave?

@kekyo kekyo added the question Further information is requested label Mar 6, 2024
@kekyo
Copy link
Owner

kekyo commented Apr 19, 2024

Related #138

This fix will pool the buffers used by PixelBuffer. Using this specification and ReferImage() may improve on situations where GC occurs continuously.

@kekyo kekyo closed this as completed Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants