> I suggest the following for cursor (almost same for statement):
> 
> try
> {
>      _cursor->close(&status);
> }
> catch (const FbException& ex)
> {
>      // report error code
>      _cursor->release();
> }
> _cursor = nullptr;

Thanks Alex. That nicely solved my conundrum.

-- 
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