Re: Force Sleep causes memory leak in IOBluetoothGetVersion() ?
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Hi Mark, A+. Luc Bergevin. Le 04-11-05, à 15:37, Mark de Rooi a écrit : Hi all, 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 (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... 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. 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? This email sent to site_archiver@lists.apple.com
participants (1)
-
luc bergevin