Application.exit not exiting?

  • Thread starter Thread starter Dan Keeley
  • Start date Start date
D

Dan Keeley

Hi,

I have some code which needs to do close down the application
and i'm trying to fire it in the catch of a try.

However it doesnt work. The application does not exit!

Any ideas?

Thanks,
Dan
 
* "Dan Keeley said:
I have some code which needs to do close down the application
and i'm trying to fire it in the catch of a try.

However it doesnt work. The application does not exit!

What are you doing in your application? Maybe you should try to close
working threads and processes inside your application, dispose objects
and then "shutdown" the application (if it doesn't exit automatically,
you can use 'Application.ExitThread').
 
What are you doing in your application? Maybe you should try to close
working threads and processes inside your application, dispose objects
and then "shutdown" the application (if it doesn't exit automatically,
you can use 'Application.ExitThread').

Ah ok, nothing complicated byt that got me thinking. The application.exit
didnt seem to be running when in the "new" method of the screen just being
opened.

So i made it check and exit if necessary before i do application.run()

Thanks,
Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top