Hi TS,
I am reviewing this issue thread. It seems Jeffery's reply is omitted. I am
not sure of whether this is a system error. So I pasted it again in the
following. Your further information is quite helpful for the issue
resolution. Thanks very much and look forward to your reply.
-----
From:
je***@online.microsoft.com ("Jeffrey Tan[MSFT]")
Date: Fri, 29 Sep 2006 08:57:54 GMT
Subject: RE: Why SOMETIMES when i try to assign an object to null in
immediate window i can't?
Newsgroups: microsoft.public.dotnet.languages.csharp
Hi TS,
Can you tell me what version of Visual Studio you are using, VS.net2003 or
VS2005? What type of project you are creating, winform, console or Asp.net?
Finally, what language you are using, C# or VB.net? These information will
be helpful for us to accurate identify the problem context. Thanks.
I have tried to use VS2005 with C# language to perform a test in a winform
project. My testing code snippet is listed below:
Form f = new Form();
private void button1_Click(object sender, EventArgs e)
{
}
I set a breakpoint in button1_Click method, once the breakpoint is hit, I
input "this.f=null" in the "Immediate window", I will get the following
result:
this.f=null
null
So, it seems that it works well on my side.
Can you provide a little sample project and detailed reproduce steps to
help me reproduce your problem? I look forward to your feedback. Thanks.
Best regards,
Jeffrey Tan
Microsoft Online Community Support
-----
Sincerely,
Yanhong Huang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.