开发者

Why do I get a "bad access" error when I release my object?

Hi I have a class whit a nsmutable array instance variable, In my code, I alloc and init my object, and later in my program I release my object, but it cause a "bad access" when I try to release it, why? If i retain my object before release it works, but I don't have other object who point o开发者_如何学Gon this object, so I don't need a retain.


Assuming you're correct that the array itself is being retained and released the correct number of times (one alloc and one release is correct), the most likely explanation would seem to be that the array contains something that has had release called one more time than necessary.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜