Property value passed in is Null. Bug?

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top