F
Franz
http://support.microsoft.com/?kbid=317109
In this document, the NAR method for C# is as follow.
private void NAR(object o)
{
try
{
System.Runtime.InteropServices.Marshal.ReleaseComObject(o);
}
catch {}
finally
{
o = null;
}
}
What is the use of the line "o = null"? Since the parameter is not a ref
object, it can't change the value of o. Is it a COM issue?
In this document, the NAR method for C# is as follow.
private void NAR(object o)
{
try
{
System.Runtime.InteropServices.Marshal.ReleaseComObject(o);
}
catch {}
finally
{
o = null;
}
}
What is the use of the line "o = null"? Since the parameter is not a ref
object, it can't change the value of o. Is it a COM issue?