LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CA_DiscardObjHandle() not releasing, any ideas why?

Hi all,

 

I am having some trouble with a active server, I am intialising the object handle but I do not seem to be able to clear it at the end of loop. The the handle reinitialises and crashes my code. At the end of the loop I pass

 

 

hr = CA_DiscardObjHandle (hbmvideosys);
CoFreeUnusedLibraries();

 but the handle does not release, the activex dll is quite straightforward and I have passed CA_freeMemory(var) for pointers used but I am still having no such luck. 

 

 

Is there anything I should be looking out for or is there any pitfalls to using activex?

 

Thanks

 

H

 

 

 

 

 

 

 

0 Kudos
Message 1 of 2
(3,014 Views)

Hi again,

 

I feel as though I need to write topic again. My previous post was at the end of the day, this problem I am having is making want to throw my rig out the window.

 

The gist of it is, if you didn't get it from above, I am attempting to connect to a dll activex server and call numerous functions from a dll that I have created that is used within my main application.

 

I can create an object and call the functions that are in the server, no problems. When I come to release the object it doesn't seem to be working for me. The functions within the activex server are quite simple, most of the functions are thread locked and calling another dll function. The system is geared towards streaming data in realtime for analysis.

 

When I come to discard the object, I do not seem to get the desired result because the next time I try to initialise the server it does not work, I can only get the activex element to function when I close the my entire application down.

 

I hope you can help.

 

Cheers

 

H

 

 

0 Kudos
Message 2 of 2
(2,994 Views)