• 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
strange malloc error with NSWindow makeKeyAndOrderFront:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strange malloc error with NSWindow makeKeyAndOrderFront:


  • Subject: strange malloc error with NSWindow makeKeyAndOrderFront:
  • From: Josh Burnett <email@hidden>
  • Date: Tue, 4 Oct 2005 22:38:30 -0400

I have a multi-window .nib file, and one of the windows is not initially shown. My main controller has an IBOutlet that is hooked up to the proper window. I also have another NSArrayController hooked up to a table in the main window. I have these two lines in an IBAction function with a button hooked up to it:

[AccountsController add:sender]; //AccountsController is my array controller
[newAccountWindow makeKeyAndOrderFront:self]; //newAccountWindow is the undisplayed window


Nothing else in the function, just these lines. The newAccountWindow doesn't have anything bound, so it shouldn't matter what's going on with the AccountsController. However, I get the following strange errors in my Run Log in XCode:

2005-10-04 19:37:35.353 Finance[6819] *** -[JBAccount copyWithZone:]: selector not recognized
2005-10-04 19:37:35.363 Finance[6819] *** -[JBAccount copyWithZone:]: selector not recognized
*** malloc[6819]: Deallocation of a pointer not malloced: 0xbfffdfd0; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug


If I comment either one of these lines, the error goes away. I only get the error when both of the lines are there.

Any ideas as to what might be causing this strange error? I'm quite stumped.

Many thanks,

Josh

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: strange malloc error with NSWindow makeKeyAndOrderFront:
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Coredata "found fault"
  • Next by Date: Re: Coredata "found fault"
  • Previous by thread: Re: Coredata "found fault"
  • Next by thread: Re: strange malloc error with NSWindow makeKeyAndOrderFront:
  • Index(es):
    • Date
    • Thread