My OS X application slowly consumes more and more bars over time, how can I debug this and find the cause?

I am new to fast and coding work. Over the past few days, I made my first OS X application. This is a simple ticker application that is on the menu bar.

My problem is that within 3 hours my application goes from 10 MB or the bar used up to 1 GB. He slowly and slowly uses more and more. I noticed that after about 6 hours the application stops working, can I only assume that OS X stopped the process because it clogs the memory too much?

Anyway, I looked online and I used the Xcode tools to try and find a memory leak, but I don’t know exactly how to indicate this. Can someone give me some general good ways to find memory leaks and error sources when using Xcode? Any general practice is also good.

+4
source share
2 answers

If memory loss is not due to a leak (Run Leaks and Analyzer), lost is randomly stored and unused memory.

Use tools to check for leaks and memory loss due to saved but not leaked memory. The latter is the unused memory that is still pointed to. Use Mark Generation (Heapshot) in the Allocations tool on the tools.

, Heapshot , . bbum

, , , , , 3 4 . , .

, , .

, , :

, "" " " ( Xcode 5 , ). , , , , , , .

+5

, , , , ; ( ).

. , - , .

!

0

All Articles