Is there a way to clear Azure Kinect DK dlls from the memory once my application is done using the sensor, even though the application is still running?

Anirban Mookherjee 0 Reputation points
2023-08-02T23:08:29.34+00:00

For a more detailed context I'm trying to run a .NET application with several 'Health check assessments' which use the Azure Kinect, but when none of the assessments are running, the sensor is not in use even though the application may be running. However, the Azure Kinect dlls seem to remain in memory and permanently increase the RAM usage by ~2GB until the entire application is shut down. This is a problem because we are running on a system without a lot of RAM to spare and our application also needs to launch Unity executables, which will have their own memory requirements and load it's own set of Azure Kinect dlls. When we do this, we go through app crashes or sensor inconsistencies due to insufficient memory.

We do uninitialize and dispose sensor after our assessments, but that does not seem to clear up memory. Is there any way this can be achieved?

Azure Kinect DK
Azure Kinect DK
A Microsoft developer kit and peripheral device with advanced artificial intelligence sensors for sophisticated computer vision and speech models.
287 questions
{count} votes