On Monday 19 September 2011 14.40:02 Marcos Douglas wrote: > On Mon, Sep 19, 2011 at 2:51 AM, Martin Schreiber <[email protected]> wrote: > > >> The variables are interface type and I'm using ref-counted. > >> Using CORBA I think this is inverse: variable are classes and have not > >> ref-counted... so, I can only use variables that are classes not > >> interface type, right? > > > > You can use CORBA interface variables additionally to the instance > > variable. > > Here is my doubt: I can use variables additionally to the instance > variable -- that is one of advantages, the parameters of some methods > will be interfaces -- but I can not instantiate an interface variable, > because I can't release it. Is that right? > You can add addref()/release() methods to your CORBA interface and do refcounting in the implementing class if necessary.
> Resume: > 1- In CORBA, I only can instantiate variables of concret class, but I > can use interfaces variables additionally to the instance variable, of > course; Correct. > 2- In IUnknow, I only can instantiate variables of interfaces. > In FPC correct. In Delphi it is usually possible to use COM interfaces with not ref counted object instances for example with TComponent. Martin _______________________________________________ MSEide-MSEgui-talk mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mseide-msegui-talk

