H
Howard Swope
I came across an interesting bug I thought I would throw out there. It
occurs when you are remoting a parameter that is of the same type of the
class that is being called for example the first line of the Copy routine
succeeds where the second fails:
class MyType() : MarshalByRefObject
{
private string name;
public MyType()
{
}
public Copy(MyType myType)
{
// succeeds
this.name = myType.Name;
// throws exception if the myType is a remoting proxy
this.name = myType.name;
}
public string Name
{
get
{
return name;
}
}
}
occurs when you are remoting a parameter that is of the same type of the
class that is being called for example the first line of the Copy routine
succeeds where the second fails:
class MyType() : MarshalByRefObject
{
private string name;
public MyType()
{
}
public Copy(MyType myType)
{
// succeeds
this.name = myType.Name;
// throws exception if the myType is a remoting proxy
this.name = myType.name;
}
public string Name
{
get
{
return name;
}
}
}