Hi, all,
I use C++ and visibroker in developing CORBA application.
Suppose such an IDL:
interface Foo
{
void func();
};
interface FooSystem
{
Foo test();
};
and the implementation class are FooImpl and FooSystemImpl,
the test method declared:
Foo_ptr FooSystemImpl::test()
{
FooImpl* pfi=new FooImpl();
Foo_ptr p=pfi->_this();
return p;
}
the client application call this test method, all work
fine. But how are the memory allocated by the new operation
be deallocated? if it is not deallocated, is it memory
leaking?
Thanks.
Que
I use C++ and visibroker in developing CORBA application.
Suppose such an IDL:
interface Foo
{
void func();
};
interface FooSystem
{
Foo test();
};
and the implementation class are FooImpl and FooSystemImpl,
the test method declared:
Foo_ptr FooSystemImpl::test()
{
FooImpl* pfi=new FooImpl();
Foo_ptr p=pfi->_this();
return p;
}
the client application call this test method, all work
fine. But how are the memory allocated by the new operation
be deallocated? if it is not deallocated, is it memory
leaking?
Thanks.
Que