You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have a question regarding the code on chapter 13. It works well the only issue I have is that memory usage keeps growing every time I record a new video…. How do you release memory, so the application does not crash… Thank you.
The text was updated successfully, but these errors were encountered:
Interesting: by simply commenting out the dealloc method, I get some memory freed up (but not good enough). Perhaps dealloc prevents Automatic Reference Counting, which is engaged by default in Xcode (after 5.0, I believe)
Edit: Also, there are problems with the Stop Capture button.
You can press it at any time, and will get the "Saved to gallery" message.
It will save whatever the last video was again. This happens even if you close the app and reopen it. (a clue!)
If you take a video and press Stop Capture twice, the app crashes.
Second Edit:
The memory problem seems to be in all recipes that capture an image. We just didn't notice it until it came to video. This could be helpful, since we can backtrack to more simple recipes and solve the problem from there.
(Luckily the Stop Capture button was not disabled by default or else I wouldn't have noticed it could be used to save multiple copies of the last taken video)
Hello, I have a question regarding the code on chapter 13. It works well the only issue I have is that memory usage keeps growing every time I record a new video…. How do you release memory, so the application does not crash… Thank you.
The text was updated successfully, but these errors were encountered: