M
Mr. X.
Hello.
I did in my code :
public class OwnerClass
{
private Point FTempP;
}
public class ChildClass
{
OwnerClass FOwner;
....
FOwner.FTempP.X = 10; // This and following line, has got the warning :
Accessing a member on 'OwnerClass.TempPoint' may cause a runtime exception
because it is a field of a marshal-by-reference class
FOwner.FTempP.Y = 10;
....
}
....
Why is the warning, and what should I write instead.
Thanks![Smile :) :)](/styles/default/custom/smilies/smile.gif)
I did in my code :
public class OwnerClass
{
private Point FTempP;
}
public class ChildClass
{
OwnerClass FOwner;
....
FOwner.FTempP.X = 10; // This and following line, has got the warning :
Accessing a member on 'OwnerClass.TempPoint' may cause a runtime exception
because it is a field of a marshal-by-reference class
FOwner.FTempP.Y = 10;
....
}
....
Why is the warning, and what should I write instead.
Thanks
![Smile :) :)](/styles/default/custom/smilies/smile.gif)