• 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 while invoking static method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EXC_BAD_ACCESS while invoking static method


  • Subject: EXC_BAD_ACCESS while invoking static method
  • From: Andrei Tchijov <email@hidden>
  • Date: Wed, 30 Jan 2008 12:36:19 -0500

I have code which worked without any problems since early days of Tiger and was working OK on Leopard. Today was the first time I have re-build it on Leopard (up to this moment I used Tiger to build my app) and now I am having strange problem. One of my classes implements singleton pattern. To get reference to singleton, I am using static method. Since I re-build my app on Leopard, I am getting EXC_BAD_ACCESS when I am trying to invoke this static method. Problem happening before any code inside method in question gets executed (to the best of my knowledge, it happening before ANY code related to the class implementing singleton gets executed). It looks almost like for some reason Objective-C generate bogus call.

Any help/comments/pointers in regard to this problem will be highly appreciated.

I am not sure if it is relevant, but I want to mention that class which gives me troubles resides in a separate framework which gets linked with my app. At the same time, there is no any indications that build process having any problems (both framework and app get build cleanly).

According to crash log, crash happening in objc_msgSend_rtp.

Andrei Tchijov
Leaping Bytes, LLC

_______________________________________________

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


  • Prev by Date: Re: Set Alpha for an NSImage
  • Next by Date: Re: Named image for regular folder?
  • Previous by thread: Re: Named image for regular folder?
  • Next by thread: More trouble with NSCollectionView
  • Index(es):
    • Date
    • Thread