Ending the appliation reliably

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi all,

Is it safe to use application.exit or application.exitthread to end a
program in .NET?

If we didn't use the forms designer then there isn't any generated code to
dispose of controls upon termination, would the above clear any resources
up?

Also, what if we have a multi-thread app?

Perhaps it's better to use the API? Maybe TerminateProcess???

Adam


.



Relevant Pages

  • Re: Secret Evidence for the Creator: Its Finally Here in Public
    ... individual human has a designer. ... Meaning 1) In one, ... at how fractals of great similarity can at ... Adam I and Adam II - ...
    (talk.origins)
  • Re, dig dis: Secret Evidence fo de Creato: It be Finally Here in Public
    ... individual human has a designer. ... Meaning 1) In one, ... at how fractals of great similarity can at ... Adam I and Adam II - ...
    (talk.origins)
  • Re: Newbie question
    ... > Is it safe or smart to ignore the events? ... The problem with the Sleep API is that it totally stops Windows ... > And this is what scares me. ... >> need to process TAPI events for a very simple solution. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Another question for IDers
    ... You also seem to think that rabies came into being after the designer ... The designer knew that at some point in time Adam or Eve would do ... on Earth could have been today if T-REX had beaten ADAM to the fruit. ... the Tree of Knowledge was part of the process ...
    (talk.origins)
  • Re: Another newbie question
    ... > I didn't say I wanted a coordinate pair where the y ordinate was double ... That's an API which makes changing the object more difficult. ... > a whole, you can operate on the individual ordinates via methods add_x, ... API instead of assuming the designer has some smidgen of ability. ...
    (comp.lang.python)