LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does CA_DiscardObjHandle() sometimes never return when it is called? Is this a known bug?

Ive noticed a problem with the CVI function CA_DiscardObjHandle(). Occasionally when I call this function, it never returns and locks the thread I call it from.

I have done things like check for a valid handle before even calling this function but nothing seems to work. It seems to be a intermittent problem.

Thanks,
L Davis
0 Kudos
Message 1 of 2
(2,944 Views)
That function should call the release method of the automation object that the handles belonged to, and I would suspect that is where the lock up comes from.

I have seen similar things happen and the best way to describe is is below(it might not actually do it, but it should show you what I mean).

Lets say you open up Word, create a file and then close the handle to the 'Word' Handle. Word will often ask you if you want to save the created file, which hangs up the closing of the handle until you physically go and do the saving yourself. (Note, 99% of the time, it would probably just shut down but this is an example). Without knowing what your automation object is, I can only guess...

Regards

Chris
0 Kudos
Message 2 of 2
(2,944 Views)