OK. CORBA_Object_release ���ĵ��ǿͻ��ˡ��ⲻ����ԭ���� Elliot Lee ��ָ���ģ�˵��ϸ�IJ�ͬ�ĵط���
On Tue, 20 Apr 1999, Svanberg Liss wrote: > Btw, what does CORBA_Object_duplicate & CORBA_Object_release do > server? Nothing.��ô���ڷ���������ʲô��? Elliot �ش����£�
> and... hmm, what kind of call does destroy the object in the server when > release doesn't? You PortableServer_POA_deactivate_object(poa, objid) to tell the POA not to take any more requests for the specified objid.
����������ʵ�ʴ�������һ��������˼������������ idl �ļ������� orbit-idl --skeleton_impl foo.idl���㽫�õ�һ�� foo-impl.c �ļ���������ļ����㽫�������������г��ĺ�����
/* * You shouldn't call this routine directly without first deactivating * the servant... * ��������ֹ�ʹ�֮ǰ���㲻���Ե���������� */ static void impl_CosTransactions_Control__destroy( impl_POA_CosTransactions_Control * servant, CORBA_Environment * ev) { POA_CosTransactions_Control__fini((PortableServer_Servant) servant, ev); g_free(servant); }
����˵����������ֹ�ʹ�֮ǰ���㲻���Ե���������̡�������ζ��������Ҫ���ʹӵ���PortableServer_POA_deactivate_object()��
FIXME: �Ҳ��������� POA_CosTransactions_Control__fini ��Щʲô������ PortableServer_POA_deactivate_object �����IJ�ͬ? �������������Ķ�����ֹ������������IJ��衣����Խ����ͷ�(in your factory)�㽨���� POA �ʹӽṹ��