Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 156539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:20:44+00:00 2026-05-11T10:20:44+00:00

I think I read somewhere recently (might even have been on SO but I

  • 0

I think I read somewhere recently (might even have been on SO but I can’t find the question) that in a debug session, pressing stop in VS just kills the process and no GC takes place. However closing the app window normally performs GC as expected.

Is this correct?

Also, what happens when a (non-debug) process is killed in task manager – does the GC still cleanup?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T10:20:44+00:00Added an answer on May 11, 2026 at 10:20 am

    If you kill the process, the operating system will clean up the memory of the process, but no GC inside the .NET runtime will occure and no finalizers will run.

    Edit: (the above was correct only if you kill the process, not if you use ‘End Task’)

    If you send ‘End Task’, then it will send the appropriate WM_CLOSE window message to the program and will not terminate the process at once and .NET can shut down properly.

    Edit: (yet another addendum)

    If you stop debugging, it is roughly equivilent to TerminateProcess(), which will shut down the process at once.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think I read this somewhere, but I can't seem to find it anymore.
I think I read somewhere that some modules only have object oriented interfaces (
I think I read somewhere that you can edit the stylesheet of other websites
I think I read somewhere that cpu's do some floating point computations in 50
I read somewhere (an SO post, I think, and probably somewhere else, too), that
I think read somewhere that when a View is requested the map is only
I think I've read somewhere that it is illegal to take the address of
I read somewhere where rich hickey said: I think continuations might be neat in
I have read somewhere that the C++ standard does not allow something like enum
I think I've read somewhere that this is possible. Use case I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.