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

Memory leak #27

Open
Alexxx8289 opened this issue Sep 28, 2022 · 1 comment
Open

Memory leak #27

Alexxx8289 opened this issue Sep 28, 2022 · 1 comment

Comments

@Alexxx8289
Copy link

Hi, I am testing your code and I noticed that every time you take a snapshot the memory increases. Does it happen to you too?

@free5lot
Copy link
Owner

free5lot commented Oct 3, 2022

Hi. Well, when you make a snapshot - the image is stored in .NET Image format and occupies memory. But I have no memory leaks in my case, after I use the image and it it's not useful anymore (and has no references to it) - the GC releases it and its memory eventually.

I have this code running and making screenshots for a long time and noticed no memory overuse.

  1. What happens in your case, can you make a lot of snapshots (like 8GiB+) to check this memory-leak theory?
  2. What way to make a snapshot do you use? (The library supports two).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants