Re: auto malloc[27012]: attempted to remove unregistered weak referrer
Re: auto malloc[27012]: attempted to remove unregistered weak referrer
- Subject: Re: auto malloc[27012]: attempted to remove unregistered weak referrer
- From: Sean McBride <email@hidden>
- Date: Fri, 20 Jan 2012 10:07:46 -0500
- Organization: Rogue Research Inc.
On Wed, 18 Jan 2012 15:47:47 -0800, Marco S Hyman said:
>I've done some searches and haven't found anything regarding this
>in my situation. An appropriate RTFM pointer would be appreciated.
>
>I'm running a *garbage collected* application in Lion (10.7.2) that was
>most recently compiled using Xcode 4.2.1. I'm getting these messages
>logged: auto malloc[27012]: attempted to remove unregistered weak
>referrer 0xblahblah
Have you tried the various debugging environment variables?
> NSOpenPanel *panel = [NSOpenPanel openPanel];
> CFArrayRef types = CGImageSourceCopyTypeIdentifiers();
> CFMakeCollectable(types);
> [panel setAllowedFileTypes: (NSArray*) types];
You can avoid the cast using NSMakeCollectable (which also handles nil better).
>In the open panel I can click, move the mouse, then shift-click and all is OK.
>If instead I click and drag I get the error multiple times. So where did I
>go wrong?
In my GC app, I haven't seen this, but am having various problems with NSOpenPanel... half the time, it shows nothing.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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