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

  • Home
  • SEARCH
  • 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 7522459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:31:43+00:00 2026-05-30T02:31:43+00:00

When I get this: – (void)applicationWillResignActive:(UIApplication *)application { I release all my objects and

  • 0

When I get this:

- (void)applicationWillResignActive:(UIApplication *)application {

I release all my objects and invalidate all my timers.

When I get this:

 - (void)applicationDidBecomeActive:(UIApplication *)application {

I reallocate all my objects and get my timers running again.

It all works fine except that now if I put my program into the background, then I actually terminate the program by closing the IOS Simulator, it gives a SIGTERM signal at line:

int retVal = UIApplicationMain(argc, argv, nil, nil);

On the other hand if I terminate the program by closing the IOS Simulator without putting it into the background first it does not give the SIGTERM signal.

Am I doing something wrong?


For me the leading cause of these kinds of SIGTERMs has been the following. If I release any object that I never owned or already released just prior to terminating the program, then I get that SIGTERM when I terminate the program.

I do not know how to get info from the simulator or debugger about which object I have done this to. But knowing from the SIGTERM that I have done an extraneous release has been enough for me to hunt it down by inspection.

If anyone knows how to look-up which object has been released extraneously in xcode please chime in.

  • 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-30T02:31:45+00:00Added an answer on May 30, 2026 at 2:31 am

    You’re not doing anything wrong. When you close the iOS Simulator, it kills your app by sending it SIGTERM. Period. That’s just the way it works. If you leave your app in the foreground, it’ll still be killed, just not by a SIGTERM. Your app is still connected to the simulator when it’s in the background; it cannot continue existing without the simulator and it has no way to connect to another instance of the simulator should you start one.

    If you don’t want your app to receive SIGTERM, don’t close the simulator.

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

Sidebar

Related Questions

I get this error when I attempt to run the wcftestclient application: The client
I get this error when debugging my ASP.NET web application after I trigger an
I get this error from my migration of NUnit to Team System when running
I get this error on my UNIX server, when running my java server: Exception
I get this error: Can't locate Foo.pm in @INC Is there an easier way
I get this error on an update panel within a popupControlExtender which is within
I get this error when I do an svn update : Working copy XXXXXXXX
I get this error:- You have an error in your SQL syntax; check the
We get this error in Visual Studio 2005 and TFS very often. Can anyone
I get this message: Cannot find the X.509 certificate using the following search criteria:

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.