• 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
Re: Force Sleep causes memory leak in IOBluetoothGetVersion() ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Force Sleep causes memory leak in IOBluetoothGetVersion() ?


  • Subject: Re: Force Sleep causes memory leak in IOBluetoothGetVersion() ?
  • From: luc bergevin <email@hidden>
  • Date: Mon, 8 Nov 2004 15:10:42 -0500

Hi Mark,

the primitives (kernel or Bluetooth) often create and autorelease objects without telling you. So you must create an AutoreleasePool at the beginning and release it at the end.

A+.

Luc Bergevin.


Le 04-11-05, à 15:37, Mark de Rooi a écrit :

Hi all,

The program below prints "...autoreleased with no pool in place..."-messages every time my Mac wakes from Force Sleep while the program is running. This leaves me with two questions:
1. Why would sleep/wake want to release objects in my application?
2. How do I fix this memory leak - need I create an AutoreleasePool?


I'm running Mac OS X 10.3.5.

Any help is much appreciated!
Mark



_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Force Sleep causes memory leak in IOBluetoothGetVersion() ? (From: Mark de Rooi <email@hidden>)

  • Prev by Date: Bluetooth phone dialing...
  • Next by Date: Re: Bluetooth phone dialing...
  • Previous by thread: Force Sleep causes memory leak in IOBluetoothGetVersion() ?
  • Next by thread: Bluetooth phone dialing...
  • Index(es):
    • Date
    • Thread