[Mono-bugs] [Bug 541052] Inspecting empty value type variable shows null value

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 14 20:26:13 EDT 2009


User martin at novell.com added comment

Martin Baulig <martin at novell.com> changed:

           What    |Removed                     |Added
             Status|REOPENED                    |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #5 from Martin Baulig <martin at novell.com>  2009-10-14 18:26:12 MDT ---
I'm sorry, but there's nothing I can do about this.  As I already said, the
runtime doesn't allocate any storage for the field.

I just had a look at this in VS myself, and VS gives you a different result
depending on whether or not the class has been initialized.  Try 's = new S()'
in the immediate window, then look at 'S.Null' again and you'll see that the
error message is gone.

And this is the problem for the debugger - since the runtime doesn't allocate
any storage for the field, it never gets initialized so we can't copy VS's
behavior unless you convince the runtime guys to always allocate 1 byte for
zero-sized valuetypes.

I can give you the error message if you want, but then you'd get this all the
time, also after doing 's = new S()'.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list