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 3636724
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:04:09+00:00 2026-05-19T01:04:09+00:00

My application creates some temporary files that I need during its whole lifecycle. I

  • 0

My application creates some temporary files that I need during its whole lifecycle. I need to dispose of those files eventually, so they don’t take up space on the device. I figured I could delete them when the application quits, but since the multitasking has been introduced the lifecycle is not as simple as it used to be. My main question is: When my application moves into background and gets killed later, does it receive applicationWillTerminate:? Or is it just wiped from the memory?

I can’t do the cleanup when the application moves into background, since it could be backgrounded in the middle of an operation and would need the temporary files once it gets back on foreground. I think I could clean the files upon startup, but I am interested in the applicationWillTerminate: behaviour anyway.

  • 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-19T01:04:10+00:00Added an answer on May 19, 2026 at 1:04 am

    No, applicationWillTerminate: is not called on multi-tasking enabled iOS 4 devices. When your app is terminated it usually means that the device is running out of memory, so even if is did get called there’s no saying that you’d have enough memory available to complete the task anyway.

    Apple recommend that you clean up when your app goes into the background. You can request extra time to do this if you need a few seconds (this is one of the few multi-tasking scenarios open to all applications).

    Your other options would be to tidy up when the task is finished (whenever that is) or when the application is started. I guess there may be other permutations…

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

Sidebar

Related Questions

My application creates a bunch of temporary .class files and I had been storing
I need to create an ASP.NET 2.0+ web application that allows the user to
We have some HTTP handlers specified in our web.config. When we were running this
Is it possible to copy a new file created by third party application inside
Let’s say that I have two C# applications - game.exe (XNA, needs to support
I have a Web application and a WCF service hosted on the same Windows
Win32's CreateFile has FILE_FLAG_DELETE_ON_CLOSE , but I'm on Linux. I want to open a
So I am using the Uplodify plugin to allow users to upload multiple images
I'm currently occupying myself with implementing a fluent interface for an existing technology, which
I am looking for a way to allow users to upload Outlook emails to

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.