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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:57:49+00:00 2026-06-13T07:57:49+00:00

I know we have Watch to monitor a variable in Debug mode, you can

  • 0

I know we have Watch to monitor a variable in Debug mode, you can the variable changing, removed, or being assigned to another object.

But what I mean is to monitor a centain object states in memory.

Say I have a method that will receive an object and assign into a variable

i.e:

void DoSomething(object anObject){
   object tempObject = anObject;
}

This method will be called more than 1 times.

If I use Watch on this tempObject, the tempObject in Watch will keep on changing when the new assigned object value.

What I interest here, is to only Watch this anObject instead. Say on the 2nd Call to this method, I found out this anObject has centain parameter is incorrect, I want to trace this object, to see when will this incorrect parameter changed back to a correct parameter. (Even out of scope).

How can I do that? Or is it possible to do it in Visual Studio?

Because right now I am having similar problem, I have a centain object I see it got disposed, but somehow somewhere is being used again and its said is not disposed. Using Watch I have no idea if that’s the same object I have been watching.

I hope I made this clear.

  • 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-06-13T07:57:54+00:00Added an answer on June 13, 2026 at 7:57 am

    Try holding a WeakReference to the object in question and watch it. From there you can see if the target of the WeakReference and the object in question are in fact the same object.

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

Sidebar

Related Questions

I know that I can watch a single file in a folder and have
I know we have ILdasm, but is there any tool out there that will
I know there have been some similar questions to this, but they haven't helped
I know: I have to sign the applet so it can read files How
I know and have Xcode, but I was wondering if there were any other
I know people have asked similar questions, but I believe the causes of their
I know there have been a million questions asking this, but mine is different.
I know similar questions have been asked and I have referenced them, but have
I know this is a bit odd but bear with me. I have a
I have checked all posts here, but can't find a solution for me so

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.