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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:47:01+00:00 2026-06-11T13:47:01+00:00

In application that I work on it, I need to close it from code.

  • 0

In application that I work on it, I need to close it from code. I’m using exit(0) for that.

Yes, I know that i shouldn’t close application from code

When I close application in this way, and run it again, there is some strange behaviur – application doesn’t start nor from splash screen, like new instance of app, neither from last view, like application turning back from background.

Instead, for a second some random, non-interactive view of my app is appearing, and after this splash screen start to run.

I’m confused because I cannot find source, and how to fix this ugly bug. Can you help me?

  • 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-06-11T13:47:02+00:00Added an answer on June 11, 2026 at 1:47 pm

    This is exactly the problem with exit(0). You get weird multitasking behaviour and all sorts of other problems.

    You simply can’t terminate your application in code. You should explain to us why you think you need to quit programmatically so we can help you find an alternative solution.

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

Sidebar

Related Questions

I have a PHP based application that I need to work on both a
I have a Winforms application that schedules some work using a service. The service
I need to execute 5 - 10 commands from a Java application (that runs
I'm using the code from this article just to try and get something up
I have a WCF service and a Silverlight application that work just fine when
My group and I have an application that will work with protected content files
Im trying to create a server/client application that will work on two or more
I have an application that needs to work with a vendor-supplied API to do
we use an application that has an export to excel feature that doesn't work
Hi I am developing an application that needs to work with a complex domain

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.