• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Help with Memory leak
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with Memory leak


  • Subject: Help with Memory leak
  • From: Vince Ackerman <email@hidden>
  • Date: Tue, 30 Mar 2004 18:10:01 -0800

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.


  • Follow-Ups:
    • Re: Help with Memory leak
      • From: Kay Roepke <email@hidden>
    • Re: Help with Memory leak
      • From: Dave Keck <email@hidden>
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>)

  • Prev by Date: Synchronizing GUI-code necessary?
  • Next by Date: Re: Help with Memory leak
  • Previous by thread: Re: Distributed Objects pitfalls and strategies (SOLUTION (?))
  • Next by thread: Re: Help with Memory leak
  • Index(es):
    • Date
    • Thread