本文介绍了CORBA的方法servant_to_reference泄漏内存(内存膨胀)以避免它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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 





我尝试过:



我试图调用deactivate_object.But那个电话是从服务器删除对象本身。但我只想清理/清除泄漏/膨胀的内存(由于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

推荐答案


这篇关于CORBA的方法servant_to_reference泄漏内存(内存膨胀)以避免它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-03 17:29