Re: Force Sleep causes memory leak in IOBluetoothGetVersion() ?
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