469,945 Members | 2,303 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,945 developers. It's quick & easy.

Application.exit not exiting?

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
Nov 20 '05 #1
2 1759
* "Dan Keeley" <ma********@hotmail.com> scripsit:
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').

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
>
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
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Andrew Warren | last post: by
4 posts views Thread by Dino M. Buljubasic | last post: by
3 posts views Thread by John Wildes | last post: by
5 posts views Thread by hzgt9b | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.