I develop some ActiceX servers in dll form with CVI7.1. They should be called in loose-coupled mode with interface calling, so I define them implementing different function with the same interfaces. One of them is event interface to push data out.
Every server work well alone. But when one server finish its task and start up another one, it initialize fail. I track the code and found that the former server doesn't exit even I call CA_DiscardObjHandle and CoFreeUnusedLibrary suggested by the help document. I unregister all the event callback on both of server side and client side, but it has no effect. I remove the the event interface, then everything is OK.
Dose anybody have a solution to remain the event interface?