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 leaks #1899

Closed
sennevanoppen opened this issue Jun 15, 2018 · 4 comments
Closed

Memory leaks #1899

sennevanoppen opened this issue Jun 15, 2018 · 4 comments
Assignees

Comments

@sennevanoppen
Copy link

Required Info
Camera Model D400
Firmware Version 05.09.11.00
Operating System & Version Win 10
Kernel Version (Linux Only) na
Platform PC
SDK Version 2.11.1
Language C#

Issue Description

The Device class (and more) doesn't contain a destructor or dispose.

Calling QueryDevices continuously creates new Device objects which live on after. When using this method numerous times it ultimately causes a OutOfMemoryException.

@RealSense-Customer-Engineering
Copy link
Collaborator

[Realsense Customer Engineering Team Comment]
@sennevanoppen
I did find the memory leak of this function, and will let engineer knows about this issue. Can you let me know why you need to query device often? To check if device exist?

@sennevanoppen
Copy link
Author

Indeed, the application regularly checks if the device exists. The application runs 24/7 so the OutOfMemoryException is just a matter of time.

Thanks for your help!

@dorodnic
Copy link
Contributor

Should be resolved on the development branch and going to be part of 2.16 release

@dorodnic
Copy link
Contributor

I believe this is resolved now, please open a new issue if you encounter any problem

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

No branches or pull requests

3 participants