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.
 
Back
Top