NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

The object specified in the class reference is not a .NET object

I have a .NET dll class called CameraCtrl. This class has a get property "Status" that returns a reference to its Status object. I  created a Local Object reference called Locals.ICCStatus. After calling the Status property when I try to use Locals.ICCStatus as a reference to call methods within the status object I get the following error.
 
Error: The object specified in the class reference is not a .NET object.
Since you are not creating an object, this must be a .NET object.
0 Kudos
Message 1 of 4
(4,105 Views)

Little more debugging has shown that the problem is slightly different. What I had mentioned is not exactly the problem. The problem can be explained like this

I instantiate a .NET object say Obj1. Obj1 has a property that provides a reference to Obj2 which is again in the .NET dll. When I use Obj2 I get this error. One important information that I was able to get was that Obj1 and Obj2 are in two separate threads.

Ifti

 

0 Kudos
Message 2 of 4
(4,087 Views)

It is resolved, I have to wait for sometime as there was  a timing issue in the dll.

 

 

0 Kudos
Message 3 of 4
(4,081 Views)
So how did you resolve it?
Glenn Ellis
0 Kudos
Message 4 of 4
(3,646 Views)