• 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
Re: EXC-BAD-ACCESS bug (SOLVED)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EXC-BAD-ACCESS bug (SOLVED)


  • Subject: Re: EXC-BAD-ACCESS bug (SOLVED)
  • From: email@hidden
  • Date: Tue, 27 Feb 2007 15:46:39 +0100 (CET)
  • Importance: Normal

> On Feb 27, 2007, at 4:25 AM, email@hidden wrote:
>
>>   I'm tracking a "EXC-BAD-EXCESS" bug in my Cocoa project
> ...
>>     NSArray *fileTypes = [NSArray
>> arrayWithObjects:@"david_Hardy2",@"txt",@"text",@"rtf",@"rtfd",@"htm",
>> @"html",@"webarchive",nil];
> ...
>> 	[fileTypes release];
>
> You did not create the fileTypes array with +alloc or -copy, nor with
> a variant of one of those methods like +allocWithZone: or -
> mutableCopy:, nor have you sent it a -retain. Therefore you are not
> responsible for sending it a -release.
>
> sherm--

  Yes. Thanks to you both Sherm and Joar. I make those mistakes repeatedly
in different guises...

                                                                       Ewan

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

References: 
 >EXC-BAD-ACCESS bug (From: email@hidden)
 >Re: EXC-BAD-ACCESS bug (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: Parsing STDout into an NSDictionary
  • Next by Date: Re: Stack Trace without /usr/bin/atos
  • Previous by thread: Re: EXC-BAD-ACCESS bug
  • Next by thread: document window appears very briefly
  • Index(es):
    • Date
    • Thread