I implement the servant of interface A with AImp.
But I want to call the local AImp and remote AImp with APrx.
When I use AImp class directly,
such as A* a = new AImp();
Because interface A has no virtual destroy function, memory leak happens.
What's more, when I use AImpPtr, memory leak happens too.
Why?


Reply With Quote