Re: crashing in calls to AudioConverter on 10.3.9
Re: crashing in calls to AudioConverter on 10.3.9
- Subject: Re: crashing in calls to AudioConverter on 10.3.9
- From: Christopher Ashworth <email@hidden>
- Date: Sat, 13 May 2006 23:36:51 -0400
Hi all,
After taking a break from it, I recently revisited this crash to see
if I could make more progress. I finally did figure out what I was
doing wrong, and for the sake of completeness I wanted to record the
resolution here so it will be archived publicly:
The quick recap is that when I was calling
AudioConverterFillComplexBuffer I was segfaulting on 10.3.9. After
help from the list, I corrected a few errors in the way I supplied
the data in the converter callback, but it wasn't preventing the
crash. I checked and double checked, and yes, I was definitely
synchronizing all the relevant converter calls to protect them from
multi-threaded harm. So it had seemed I was doing everything right,
but the crash persisted.
Well, on those points, I was actually doing the right stuff. Today I
finally tracked down where I was doing the wrong stuff. Namely, I
was disposing of the AudioConverterRef incorrectly. This led to some
bit of memory unhappiness on the next incarnation of the converter,
and the crash ensued.
As a sanity check, let me just confirm that this is the way I should
be tearing down an AudioConverterRef that will be reused again
(recreated via AudioConverterNew):
AudioConverterDispose(converter);
converter = nil;
Correct?
Thanks again for everyone's help.
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden