Re: Double-free in DLS unitialize
Re: Double-free in DLS unitialize
- Subject: Re: Double-free in DLS unitialize
- From: Bill Stewart <email@hidden>
- Date: Mon, 30 Jun 2003 22:04:31 -0700
We're still looking into this - I'll run this code below over the next
day or so and post back any info I find...
Bill
On Wednesday, June 25, 2003, at 10:44 AM, daniel wrote:
When I wrote about it here, Bill mentioned that he had written a bug
up to track it at Apple. Sometimes additional bug reports can help,
though!
I would still love to hear about any workaround if there is one.
D
On Wednesday, June 25, 2003, at 08:53 AM, Christopher Corbell wrote:
This is just a third confirmation of this bug, which has appeared in
my
app for some time when disposing a music sequence that uses
an AUGraph with multiple DLS units.
Bill S. and folks at Apple, is there some correct call sequence that
we may all
be overlooking, or should this get a bug report?
Thanks,
Christopher
On Wednesday, June 25, 2003, at 01:08 AM, Michael Norris wrote:
I am seeing a disturbing double-free warning when I dispose an
AUGraph
that has an Apple DLS device instantiated within it. I've traced the
problem down to a DisposePtr call made from within "NoteScheduler".
I've pasted the stack crawl below.
I'm getting the exact same error when releasing a valid
MusicSequence, which is attached to the built-in DLS device.
Doesn't seem to affect life, but it's worrying to see.
My code goes something like:
status = NewMusicPlayer(&player);
// start loop
status = NewMusicSequence(&sequence);
status = MusicPlayerSetSequence (player, sequence);
status = MusicSequenceNewTrack(sequence,&track);
status = MusicPlayerPreroll (player);
status = MusicPlayerStart (player);
status = MusicSequenceDisposeTrack(sequence,track)
status = DisposeMusicSequence(sequence)
// end loop
It's at that point that I get the malloc() warning, but only on the
second time around the loop and subsequent iterations. The sequence
variable is definitely valid before calling DisposeMusicSequence, as
I poll it for certain information, which it returns correctly.
[....]
==============================
iPiano
Music software for Mac OS X
http://www.machotshot.com/iPiano/
==============================
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
--
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
________________________________________________________________________
__
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.