N
Nick
I have some code that basically declares some objects, then calls a COM+
method with initializes the objects. I then pass those objects in to a class
property. When they get passed in they are null. In debug everything appears
valid, except that the value doesn't appear to get passed in and the
internal property remains == null. Looks something like this:
Object obj1
Object obj2
for(loop)
{
CallCOMMethod(out obj1, out obj2);
Class class = new class();
class.int = (int)obj1; //0 passed in, not value of obj1
class.string = (string)obj2; //null passed in, not value of obj2
ArrayList.Add(class);
}
return ArrayList;
class.int and class.string are not being passed in. The values are good
before and after the assignment, but when the instance of the property set
method is called, the value passed in is null, so the property value never
gets assigned. Does this make any sense to anyone?
Thanks in advance,
Nick
Using .NET Framework 1.1 and 2003 debugger.
method with initializes the objects. I then pass those objects in to a class
property. When they get passed in they are null. In debug everything appears
valid, except that the value doesn't appear to get passed in and the
internal property remains == null. Looks something like this:
Object obj1
Object obj2
for(loop)
{
CallCOMMethod(out obj1, out obj2);
Class class = new class();
class.int = (int)obj1; //0 passed in, not value of obj1
class.string = (string)obj2; //null passed in, not value of obj2
ArrayList.Add(class);
}
return ArrayList;
class.int and class.string are not being passed in. The values are good
before and after the assignment, but when the instance of the property set
method is called, the value passed in is null, so the property value never
gets assigned. Does this make any sense to anyone?
Thanks in advance,
Nick
Using .NET Framework 1.1 and 2003 debugger.