I have a strange situation. I have a fairly intensive image processing process (image processing), but I developed all the kinks and it only works 99% of the time.
However, if I put the application in an inactive or background state, when I return and try to start the same process, I get warnings about memory, and then the application crashes.
I used tools for analyzing the memory area in two use cases, and the amount of memory is exactly the same. However, in the case when I do not put the application in the background (or inactive), it does not give me any memory errors and finishes fine. In case of use, when it was put in the background (or inactive), I get memory errors and crash.
Does anyone have any info on this? I combed net / irc / stack over / apple docs trying to figure this out. Is apple (iOS) a decrease in the amount of memory that my application can run after I return from the background? Is there any way to prevent this? Or do I not see another simpler solution?
(Please note that there are no memory leaks)
source share