Hi *,

I'm bit lost in the logic  of`addRef` and `release`. So better to ask, than 
cause some leaks, right?

Let's suppose I call `IExternalContext::getAttachment` in a method and assign 
it to local variable. Do I have to call `addRef` after getting the instance? Do 
I have to explicitly call `release` before end of the method?

Let's suppose I call `IExternalContext::getAttachment` in a constructor and 
assign it to the field of the class. Do I have to call `addRef` in that 
constructor? Do I have to call `release` later in destructor?

Thanks.

-- 
Mgr. Jiří Činčura
https://www.tabsoverspaces.com/


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to