Re: [Pyobjc-dev] XCode/PyObjC templates leaking
Brought to you by:
ronaldoussoren
From: tanya <tok...@gm...> - 2012-06-14 17:39:00
|
In Instruments if I take a snapshot every sec, I get a list of leaked objects, they're either all Malloc or NSAutorelease Pool. When I follow memory addresses, I see "responsible callers": PyMem_Malloc or [NSAutoreleasePool allocWithZone]. -t On Wed, Jun 13, 2012 at 7:53 PM, Ronald Oussoren <ron...@ma...>wrote: > > On 13 Jun, 2012, at 9:38, tanya wrote: > > Hello. I am just beginning with PyObjC, and so I downloaded XCode/PyObjC > templates from http://svn.red-bean.com/pyobjc/trunk/pyobjc/pyobjc-xcode/ . > Without changing anything I am running Instruments, and seeing that there > are leaks in XCode 4.3 ( > https://dl.dropbox.com/u/16876271/Screen%20Shot%202012-06-13%20at%2011.22.26%20AM.png). > I also downloaded other templates based on that ( > https://github.com/gregneagle/Xcode4CocoaPythonTemplates), and these also > leak. What can I do to resolve this? Is it too minor to worry about? > > > I don't use the Xcode templates myself (I'm an command-line nerd and use > vim and py2app instead). The leaks are probably not relevant, what does > Xcode say about the source of these leaks? If you select the leak > Instruments should tell you where the memory was allocated, and that might > tell us what's going on here. > > Ronald > > > Thanks for your help! > > -t > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > > > |