1

My problem is same as Leaking NSAutoreleasePool here I am not allocating any autoreleasepool there is only one autoreleasepool and that is of main.No multithreading. I am running my app on simulator 4.1.here in this discussion I am not finding the exact solution so if any one can share his/her idea on this will be appreciated,

Community
  • 1
  • 1
rao
  • 79
  • 1
  • 9
  • Past the code where you think it is leaking. – Cyprian Jul 08 '11 at 06:03
  • hi actually the instrument is not pointing to any code.but i think it is leaking in viewWillAppear method where i am allocating the mapview i think MapKit TileCachePrivate::runCacheThread() is causing problem as par the leak instrument.hope you understand if not please let me know since i am new to iphone – rao Jul 08 '11 at 06:18
  • Did you try to analyze it. Hit shift+cmd+B. It should get you more info about potential leaks. – Cyprian Jul 08 '11 at 06:24
  • Pls, use edit question function to add the console log and mark it as a code. In the stackctrace you are interested in a line where you see one of you class names, not the framework clases. – Cyprian Jul 08 '11 at 06:34
  • hello sir in stacktrace i am not getting my classname only it shows leak in framework clases. – rao Jul 08 '11 at 06:56
  • Then the only other way to track the leak is to insert brakes in the code and trying to see manually when the leak will show up. – Cyprian Jul 08 '11 at 07:25
  • In the past I've occasionally found that some Apple APIs leak memory in the simulator but not on the device. You might want to try running profiling on an actual device before you spend too much time on this. – Daniel Dickison Jul 12 '11 at 14:01
  • ok i ran the app on actual device but still it's giving the same leak ,but my app does not crash due to that.I think there is something with apple api. – rao Jul 21 '11 at 06:34

0 Answers0