|
Memory Leak in Camera Code
After we are done processing an image from the camera, we use the .free() method. However, on the driver station, under the charts tab, the available RAM for the cRIO always decreases with each picture, but never increases to it's previous level. This leads to us running out of memory and unable to take anymore pictures until we reboot the cRIO. We have moved the variables from the method to the class. We believe we are not saving any references to the image. We have released the underlying pointers. However, the problem remains. Has anyone else encountered this problem and if so, how have you resolved the issue?
|