NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help ActiveX to close process

Solved!
Go to solution

I use activeX steps in my test sequence.

 

First, I use a sequence in which I create an object reference (I click on Create object). Then in the next sequences, I call methods (I can see in the Windows task manager the process running).

 

But at the end of my test sequence, I don’t know how to close this process! I looked for a method but I can’t find one.

Should I delete my Object reference?

 

The solution I found is to create a script file (xxx.bat) which kills the process used. Then I launch this executable.

 

Thank you

0 Kudos
Message 1 of 3
(3,251 Views)
Solution
Accepted by topic author JeanCom

What process are you talking about? Are your activex steps calling an exe COM server? Generally exe COM servers will exit when you release all of the references to it, but not right away. There is often a several second delay. Local variables that contain activex references are automatically released when they go out of scope. To release a reference sooner just set the variable to the keyword Nothing.

 

Hope this helps,

-Doug

Message 2 of 3
(3,229 Views)

 

My activeX references were "FileGlobals" (Smiley Sad), that's why i had a lot of  exe COM servers running on my PC.

I tried to set my activeX references in "Locals" or to set the variable to the keyword Nothing : it works :smiley happy:!!!

 

Thank you for you help.

 

Jean

0 Kudos
Message 3 of 3
(3,196 Views)