G
great_sql
Unregistered / Unconfirmed
GUEST, unregistred user!
使用VisiBroker编写的服务端代码如下:
CORBA::Any* __fastcall TdmEvent:ataRequest(const CORBA::Any&
Param)
{
CORBA::Any* any = new CORBA::Any;
try
{
//给any变量赋值
[red]return CORBA::Any::_duplicate(any);
//如何释放any变量?[/red]
}
catch :Exception &e)
{
// Translate VCL exceptions into a corba exception
throw MsgInterface::Msg::MsgException(e.Message.c_str());
}
}
如何释放any变量所占用的内存?
CORBA::Any* __fastcall TdmEvent:ataRequest(const CORBA::Any&
Param)
{
CORBA::Any* any = new CORBA::Any;
try
{
//给any变量赋值
[red]return CORBA::Any::_duplicate(any);
//如何释放any变量?[/red]
}
catch :Exception &e)
{
// Translate VCL exceptions into a corba exception
throw MsgInterface::Msg::MsgException(e.Message.c_str());
}
}
如何释放any变量所占用的内存?