Click here to Skip to main content
15,889,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using CORBA (Common Object Request Broker Architecture)
C++ and calling CORBAs servant_to_reference to create a Object on the Remote server.

example : Class A
A *p = new A;
CORBA_POA->servant_to_reference  // here memory leak 

Question is How to avoid memory leak (memory bloat)
Memory leak is seen at the CORBA's servant_to_reference call
How to avoid that
Is there any CORBA method to clean the memory after  servant_to_reference call
or any alternate method to call instead of servant_to_reference 


What I have tried:

I tried to call deactivate_object.But that call is deleting the object itself from server.But I want just to clean/clear leaked/bloated memory (that was created due to servant_to_reference
Posted
Updated 4-Oct-18 5:49am
v2

1 solution

Your implementation has some flaw, but the code is missing. So you must inspect and debug what you trigger in that call.

Read the article A Simple C++ Client/Server in CORBA for some example code.

In that code later is some cleanup of the used object.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900