When Im ending a process in the Task manager , ( kills it )
will it run its dispose or Finilize methods ?
what ends up with the native resources ?
will the operating system will clean them ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Dispose/finalize/whatever – no. There is nothing to run them because the OS stops, or prevents the running of, all threads of the process first. All OS native resources linked to the process – handles. memory etc. are then all released and the process ceases to exist.
It has to be like this so that all user processes, no matter how coded or what they are doing, can be stopped. The OS cannot be involved with finalizers etc. else user processes may become unstoppable.