Strange
Using the simulator and the debugger I happened to notice
that my player iPhone app keeps creating more and more threads each time I
begin the “play” function. My applications is implemented using
AudioQueues and does not explicitly create new threads. All the code I wrote runs
in the main thread
Here are the # threads I have observed in my test
- Just before first play 3
threads
- Just before second play 6
threads
- Most are in mach_ms_trap
- One has something from
AQConverter in its stack
- Just before third play I have 8
threads
- Most are in mach_ms_trap
- One has something from
AQConverter in its stack
From one play to the next, I do not always get the same # of
threads add. It seems some time some threads seem to expire?
I checked my code, I explicitly create a new player every
time the user press the play button. I release the player as soon as the play
back finishes. I used the debugger to check that in fact all the objects I
created are getting released.
My app seems to work okay, how ever it seems like it must be
wasting more and more system resources?
Any idea why I might be seeing this behavior? Any idea how I
can track this down?
I did not notice this problem in the SpeakHere sample app.
My app uses several AudioQueues. I wonder if this could some
how be related to the problem?
Is this a bug?
Thanks
Andy
Replace Ads with your Stuff! Learn how @ www.prowebsurfer.com