• 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
EXC_BAD_ACCESS help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EXC_BAD_ACCESS help


  • Subject: EXC_BAD_ACCESS help
  • From: "William Zumwalt" <email@hidden>
  • Date: Sat, 19 Jan 2008 23:48:25 -0600

I've got an EXC_BAD_ACCESS error on line #2 below.


 // retainCount = 1

NSLog(@"patternCount retainCount = %d", [patternCount retainCount]);

// EXC_BAD_ACCESS on this line ...

NSLog(@"patternCount = %d", [patternCount intValue]);


patternCount is of type NSNumber* which is held inside my DataPattern object
that I've sent over YAMessageQueue (async from one thread to the main gui
thread) to a controller.


@interface DataPattern : NSObject {

...

NSNumber *patternCount;

NSNumber *otherData;

}


I believe I've got my memory management correct and that my retain counts
are good.


I've successfully sent hundreds of objects from a thread to my app's main
thread over YAMessageQueue asynchronously (and vice versa), but then every
once in a while my app crashes. Although it could be any member of my
DataPattern object that shows the EXC_BAD_ACCESS problem, the other members
of that object are fine when I debug them.


Anyone have an idea?
_______________________________________________

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: EXC_BAD_ACCESS help
      • From: Scott Ribe <email@hidden>
    • Re: EXC_BAD_ACCESS help
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Where should AppleScripts reside?
  • Next by Date: Re: Where should AppleScripts reside?
  • Previous by thread: Re: Anybody using Eiffel-Cocoa?
  • Next by thread: Re: EXC_BAD_ACCESS help
  • Index(es):
    • Date
    • Thread