Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6898217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:16:04+00:00 2026-05-27T07:16:04+00:00

I was testing my code and I realized that I was releasing an autoreleased

  • 0

I was testing my code and I realized that I was releasing an autoreleased object but the app did not crash.
So I created a new empty project from scratch with just few lines:

NSArray *array = [NSArray array];
[array release];
[array release];
[array release];
[array release];
...

This does not crash never, nor is marked as zombie object in GDB. If I analyze the code with Product -> Analyze it does not find any errors.

Normally it should crash I think…
I’m testing on Xcode 4.2 with Apple LLVM compiler 3.0 but the same is true with the old gcc 4.2.

Any idea about why it is happening?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:16:05+00:00Added an answer on May 27, 2026 at 7:16 am

    It’s a no-op if garbage collection is enabled. I presume, it is.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How are people unit testing code that uses Linq to SQL?
I am interested in your opinions on unit-testing code that uses Corba to communicate
I'm trying to be better about unit testing my code, but right now I'm
I recently did some refactoring of my mvc application and realized that there are
In testing and production versions, my app crashes without producing any crash log (which
I'm testing some threading code, and using LinqPad I noticed that I'm able to
During recent stress and volume testing, we realized that after 30minutes, all uses gets
I was just checking in my code and realized that I'm have no idea
For some testing code, I'd like to be able to host a WCF service
I'm using UnitTest++ for unit testing C++ code. In my tests, there's a group

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.