• 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
Leak while in Midi thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Leak while in Midi thread


  • Subject: Leak while in Midi thread
  • From: Steve <email@hidden>
  • Date: Fri, 10 Jan 2003 08:58:06 +0000

Hi,

I have a method to display incoming notes on a Keyboard graphic which includes:

NSColor *myColor;
myColor = [NSColor colorWithCalibratedRed:0.25 green:0.95 blue:0.25 alpha:1.0];

When this is called programmatically, there is no problem, and the NSColor is (I guess) being correctly auotreleased at some point. (...next time round the event loop?).

However the same method can also be called from my Midi readProc. When this happens, I get the following error log:

>2003-01-10 08:32:20.442 ChordCompleteDebug[788] *** _NSAutoreleaseNoPool(): Object 0x19c52d0 of class >NSCalibratedRGBColor autoreleased with no pool in place - just leaking

I'm guessing that it's caused by the new Midi thread, and confusion over which thread should release it?

Does anyone know either how to fix this, or at least have some clues on how to track the problem down further?

Thanks

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

  • Follow-Ups:
    • Re: Leak while in Midi thread
      • From: Kurt Revis <email@hidden>
    • Re: Leak while in Midi thread
      • From: Chris Reed <email@hidden>
    • Re: Leak while in Midi thread
      • From: Philippe Wicker <email@hidden>
  • Prev by Date: Re: Some CoreAudio properties not accessible via Java API?
  • Next by Date: Re: Leak while in Midi thread
  • Previous by thread: A word on AIF file formats
  • Next by thread: Re: Leak while in Midi thread
  • Index(es):
    • Date
    • Thread