• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
auto malloc[27012]: attempted to remove unregistered weak referrer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

auto malloc[27012]: attempted to remove unregistered weak referrer


  • Subject: auto malloc[27012]: attempted to remove unregistered weak referrer
  • From: Marco S Hyman <email@hidden>
  • Date: Wed, 18 Jan 2012 15:47:47 -0800

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
multiple times. What is most interesting is that it only happens when
selecting multiple items by dragging.  I first noticed it in this code:

- (IBAction) showOpenPanel: (id) sender
{
    BOOL reloadNeeded = NO;
    BOOL showWarning = NO;

    NSOpenPanel *panel = [NSOpenPanel openPanel];
    CFArrayRef types = CGImageSourceCopyTypeIdentifiers();
    CFMakeCollectable(types);
    [panel setAllowedFileTypes: (NSArray*) types];
    [panel setAllowsMultipleSelection: YES];
    [panel setCanChooseFiles: YES];
    [panel setCanChooseDirectories: NO];
    NSInteger result = [panel runModal];
    if (result == NSOKButton) {
	// this may take a while, let the user know we're busy
	[self showProgressIndicator];
	NSArray *urls = [panel URLs];
	for (NSURL *url in urls) {
        NSString *path = [url path];
	    if (! [self isDuplicatePath: path]) {
		[imageInfos addObject: [ImageInfo imageInfoWithPath: path]];
		reloadNeeded = YES;
	    } else
		showWarning = YES;
	}
	[self hideProgressIndicator];

	if (reloadNeeded)
	    [tableView reloadData];
	if (showWarning) {
	    NSAlert *alert = [[NSAlert alloc] init];
	    [alert addButtonWithTitle: NSLocalizedString(@"CLOSE", @"Close")];
	    [alert setMessageText: NSLocalizedString(@"WARN_TITLE", @"Files not opened")];
	    [alert setInformativeText: NSLocalizedString(@"WARN_DESC", @"Files not opened")];
	    [alert runModal];
	}
    }
}

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?

Thanks,

Marc_______________________________________________

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

  • Follow-Ups:
    • Re: auto malloc[27012]: attempted to remove unregistered weak referrer
      • From: Corbin Dunn <email@hidden>
    • Re: auto malloc[27012]: attempted to remove unregistered weak referrer
      • From: Marco S Hyman <email@hidden>
  • Prev by Date: Re: Is slowing down bindings updates possible?
  • Next by Date: controlling a camcorder
  • Previous by thread: Re: NSTask terminates when NSApplication exits
  • Next by thread: Re: auto malloc[27012]: attempted to remove unregistered weak referrer
  • Index(es):
    • Date
    • Thread