Hi!
My app is using quite a bit of memory and therefore it's often get killed by the watchdog. In my efforts to reduce memory consumptions (and change some other stuff too) I've rewritten some of the system functions (replaced few CoreText classes to be exact).
That actually went pretty well and I've managed to reduce memory consumption by ~3mb (according to allocations and memory monitor instruments).
Nevertheless, now my application is getting killed by watchdog way sooner. When old version is still working (even though consuming more memory) new version gets killed by OS.
I think that it might be happening due to an excessive use of malloc/free to alloc/free lots of small structures on the heap.
Is it so?
What other problems might be causing this behavior (memory consumption decrease / watchdog kills app faster)?
Can it be due to a fact that its my app managing memory now and not the system library?