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

Ask A Question

Stats

  • Questions 489k
  • Answers 489k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I just had the same problem myself after configuring TFS… May 16, 2026 at 8:52 am
  • Editorial Team
    Editorial Team added an answer you would need to use urllib2 python library to get… May 16, 2026 at 8:52 am
  • Editorial Team
    Editorial Team added an answer I finally figured out my answer through : http://source.online.free.fr/Windows_HowToCompileSQLite The… May 16, 2026 at 8:52 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a program which receives data from unmanaged code about 500 to 700
I have spent the whole day trying to make my application use threads but
I have two divs (one inside of the other) and am running into a
One thing that constantly causing me headache in programming is when I don't have
A client is having an issue running java2ws on some of their code, which
Let's say you have a view called View Story which is just a web
The winform: The code: using System; using System.Windows.Forms; namespace DemoApp { public partial class
I have two tables: block: int id, [other columns...] blockInstance: int id, int blockId
I just wanted to see if I could have your thoughts on the design
I have been trying to replicate the buffer overflow example3 from this article aleph

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.