Missing something fundamental
1,297
0
Advertisement
I was hoping someone here might be able to shed some light on a problem that I've been having. At first I thought it was a simple memory management issue on my part; not performing alloc/release correctly. I went through and corrected all of the obvious leaks but now seem to be stuck on a different problem.
The image below shows something I took out of Instruments when looking at the objects allocated. For some reason, every time I remove all views from superview and add a new one the memory goes up by .05 to .1 MB. Doesn't removeFromSuperview automatically free this up if I released the object after adding it?
I also send messages back and forth between a couple of classes and it looks like the objc_msgSend eats up some memory but I don't know how to get rid of this. It's most noticeable within the PurpleEventTimerCallBack.
The image below shows something I took out of Instruments when looking at the objects allocated. For some reason, every time I remove all views from superview and add a new one the memory goes up by .05 to .1 MB. Doesn't removeFromSuperview automatically free this up if I released the object after adding it?
I also send messages back and forth between a couple of classes and it looks like the objc_msgSend eats up some memory but I don't know how to get rid of this. It's most noticeable within the PurpleEventTimerCallBack.

Advertisement
Advertisement
Advertisement
Discussion