Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EXC_BAD_ACCESS while invoking static method



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.