Malloc error: GC operation on unregistered thread...
Malloc error: GC operation on unregistered thread...
- Subject: Malloc error: GC operation on unregistered thread...
- From: Andrew Madsen <email@hidden>
- Date: Mon, 7 Sep 2009 16:35:49 -0600
I'm working on an app that uses Audio Queue Services for recording
audio. I have the following lines in my code:
OSStatus err;
UInt32 propertySize;
AudioQueueRef myQueue = [self audioQueue];
err = AudioQueueGetPropertySize(myQueue,
kAudioQueueProperty_MagicCookie, &propertySize);
I'm calling AudioQueueGetPropertySize in preparation for calling
AudioQueueGetProperty() to get the magic cookie from the audio queue
so I can save it as a property in my audio file. However, I get the
following error when the line above is executed:
malloc: *** auto malloc[861]: error: GC operation on unregistered
thread. Thread registered implicitly. Break on
auto_zone_thread_registration_error() to debug.
Breaking on auto_zone_thread_registration_error shows me the following
stack trace:
#0 0x9567a0c3 in auto_zone_thread_registration_error
#1 0x95675116 in auto_zone_allocate_object
#2 0x91749791 in CFAllocatorAllocate
#3 0x917494b3 in _CFRuntimeCreateInstance
#4 0x9177e362 in __CFRunLoopCreate
#5 0x9177e24f in _CFRunLoopGet0
#6 0x9177df1d in CFRunLoopGetCurrent
#7 0x20390e86 in AVS::AVCDeviceController::AVCDeviceController
#8 0x20391478 in AVS::DestroyAVCDeviceController
#9 0x9050cfe1 in _pthread_start
#10 0x9050ce66 in thread_start
My app doesn't crash, and everything seems to work OK, but I'm trying
to figure out what this means. This is my first garbage collected
app, so I'm guessing there's something about the intricacies of
actually using garbage collection that I'm missing. Any pointers?
Thanks!
Andrew Madsen
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden