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 505031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:33:25+00:00 2026-05-13T06:33:25+00:00

If I have an object stored in memory, and I walk away from my

  • 0

If I have an object stored in memory, and I walk away from my application for an hour, will the object still be there when I get back?

In other words, will the .NET garbage collector throw my object away because it hasn’t been used for awhile?

  • 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. Editorial Team
    Editorial Team
    2026-05-13T06:33:25+00:00Added an answer on May 13, 2026 at 6:33 am

    The garbage collector only collects objects that are no longer referenced in your application. The garbage collector will never collect any objects that are being used.

    The garbage collector’s definition of “being used” is based on roots. An object instance has roots if other object instances in the AppDomain reference it. As long as the AppDomain that hosts your application is not unloaded, any and all object instances that were in memory will remain in memory as long as they retain roots in the application.

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

Sidebar

Related Questions

In C++, I have an Object class, from which a number of other classes
I have an HTML document stored in memory as an Linq-to-XML object tree. How
Is there a name for a pre-loaded AJAX object stored in memory? If I
I have a an object stored in the model called domain, which has two
I have a list of object, stored in an arrayController and rendered on the
let's say I have HTML stored in HTMLElement object. It's outerHTML property looks like
I have this stored procedure, which is mapped in an Entity Framework 4.1 object.
I have a System.Type stored in a variable. I wish to Change an object's
This is about asp.net mvc3 web application. We have used Object cache to store
I want to copy the content from one object stored in one docbase 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.