Killing own process

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

how can I kill my own process out of a VB.NET machine (in another way than Application.Exit())?

Thanks
Peter
 
Environment.Exit will terminate the app in a manner the runtime considers to
be graceful. Process.Kill() will terminate the associated app (usually a
different app) instantly and not gracefully. There are side-effects to
exiting the app by using one of the APIs that directly command the runtime
to terminate the app. Finalizers will run but finally blocks will not.
 

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