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: William Stewart <email@hidden>
- Date: Mon, 15 May 2006 12:05:47 -0700
Yes
On 13/05/2006, at 8:36 PM, Christopher Ashworth wrote:
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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