View Single Post
  #1   Spotlight this post!  
Unread 12-02-2013, 17:06
crs501 crs501 is offline
Registered User
FRC #3157
 
Join Date: Feb 2013
Location: Rochester
Posts: 1
crs501 is an unknown quantity at this point
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?
Reply With Quote