Hi,

I have an Objective-C/Cocoa app with garbage collection enabled. To check for memory leaks I first ran it through Instruments and it did find some leaks. There was no information on where the leaks were coming from, so I used another tool, AnalysisTool (basically a front end for the Clang Static Analyzer) to check my code for memory issues. It found some leaks and I fixed all of them, however Instruments still reports leaks.

Further complicating the problem is that my app crashes when garbage collection is disabled. And in the Xcode debugger console (when garbage collection is enabled), right when my app starts I get these errors: MyApp(9874,0xb0103000) malloc: free_garbage: garbage ptr = 0x101bfb0, has non-zero refcount = 1 MyApp(9874,0xb0103000) malloc: free_garbage: garbage ptr = 0x101ec90, has non-zero refcount = 1 MyApp(9874,0xb0103000) malloc: free_garbage: garbage ptr = 0x1021560, has non-zero refcount = 1 MyApp(9874,0xb0103000) malloc: free_garbage: garbage ptr = 0x1027da0, has non-zero refcount = 1 MyApp(9874,0xb0103000) malloc: free_garbage: garbage ptr = 0x10293f0, has non-zero refcount = 1 MyApp(9874,0xb0103000) malloc: free_garbage: garbage ptr = 0x102a2a0, has non-zero refcount = 1 MyApp(9874,0xb0103000) malloc: free_garbage: garbage ptr = 0x102cd00, has non-zero refcount = 1 MyApp(9874,0xb0103000) malloc: free_garbage: garbage ptr = 0x1030e70, has non-zero refcount = 1 MyApp(9874,0xb0103000) malloc: free_garbage: garbage ptr = 0x1032bf0, has non-zero refcount = 1 MyApp(9874,0xb0103000) malloc: free_garbage: garbage ptr = 0x1033430, has non-zero refcount = 1

Any help with this would be appreciated. Source code is available upon request

Thanks
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to