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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:32:26+00:00 2026-05-16T01:32:26+00:00

I have a confusing problem in my code, in which one object gets initialized

  • 0

I have a confusing problem in my code, in which one object gets initialized properly, but when I look at it through a parent reference, its properties arent initialized anymore.
I assigned id’s for my objects, and I am perfectly sure that there are no duplicate objects lying around. When looking through the parent, the child is not initialized, but
This is something I don’t understand. Shoudn’t C# references point to the same memory space, and therefore show the correct values even when another reference changed something in that memory space?

EDIT:
I don’t need the problem above solved.
Just a reminder that this is the question which I’m interested in:

So back to the headline question:
For easier debugging, I would like to look behind all those abstracted references like I could do in C++. I think it would be immediately clear to me what went wrong when I could do that.

  • 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-16T01:32:26+00:00Added an answer on May 16, 2026 at 1:32 am

    If you want to keep track of which object a particular reference is pointing at while debugging, then you can right click on a reference in a Watch window and select ‘Make Object ID’. Any other references to the same object will now show the same ID in the debugger (e.g. {1#}), and you can add the ID as a value to watch even if there are no references on the current stack frame.

    See here for an example

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

Sidebar

Related Questions

One thing I have continually found very confusing about using an object database like
I have an SQL question which may be basic to some but is confusing
I'm having a really confusing problem. I have a UIWebView that is contained within
The title may have been confusing, but please let me explain: Currently when I
Ok so the title may have been confusing so i have posted 2 code
I have a class with two buttons. Depending on which one is clicked a
I have a C library which I access through NDK. Some operations are time
I have a rather confusing problem. I have a php file (http://example.com/delete.php) <?php session_start();
I have a problem that is very confusing for me. In the constructor of
I am having a very confusing problem with an application I have been working

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.