Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with Memory leak



I hope someone can help with a memory leak that is flagged during runtime by the gdb debugger. I am monitoring a USB device that makes a callback to my code when I push a button. It passes a boolean value to my callback and my object copies it and sends an NSNotification that the value has changed. My main controller object receives the notification and changes a text string in my main window to reflect the current value. Somewhere in this process I get the following leak, repeated 4 times after each button press:

2004-03-30 10:22:45.604 MoConX[4835] *** _NSAutoreleaseNoPool(): Object 0x58cea0 of class NSCFNumber autoreleased with no pool in place - just leaking
2004-03-30 10:22:46.003 MoConX[4835] *** _NSAutoreleaseNoPool(): Object 0x58cea0 of class NSCFNumber autoreleased with no pool in place - just leaking
2004-03-30 10:22:46.004 MoConX[4835] *** _NSAutoreleaseNoPool(): Object 0x58cea0 of class NSCFNumber autoreleased with no pool in place - just leaking
2004-03-30 10:22:46.004 MoConX[4835] *** _NSAutoreleaseNoPool(): Object 0x54c1c0 of class NSCFNumber autoreleased with no pool in place - just leaking
[Switching to process 4835 thread 0x290b]

I'm not assigning the boolean to any of my objects variables, just copying it. Also, I'm not using a NSCFNumber, and I can't find it in the documentation. I can't find any object that has that address, either. Where do I start looking for this leak?

Hope someone can help.

Thanks in advance

Vince
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Distributed Objects pitfalls and strategies (From: John Scalo <email@hidden>)
 >Re: Distributed Objects pitfalls and strategies (From: Aurélien Hugelé <email@hidden>)
 >Re: Distributed Objects pitfalls and strategies (SOLUTION (?)) (From: John Scalo <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.