Re: [Firebird-devel] fb_shutdown in embedded mode

2019-01-24 Thread Vlad Khorsun
24.01.2019 16:14, Adriano dos Santos Fernandes wrote: On 24/01/2019 12:00, Vlad Khorsun wrote: 24.01.2019 15:13, Jiří Činčura wrote: Vlad, is it OK to call this method multiple times (nothing else is called in between)?   Yes. All calls after first one is (almost) no-op I'm asking because

Re: [Firebird-devel] fb_shutdown in embedded mode

2019-01-24 Thread Dimitry Sibiryakov
24.01.2019 15:14, Adriano dos Santos Fernandes wrote: But if we have some libraries in the application loading Firebird, and the application writer does not have total control of that, two libraries may load Firebird and when one of them calls the shutdown function, the other will not work anymor

Re: [Firebird-devel] fb_shutdown in embedded mode

2019-01-24 Thread Adriano dos Santos Fernandes
On 24/01/2019 12:20, Jiří Činčura wrote: >> But if we have some libraries in the application loading Firebird, and >> the application writer does not have total control of that, two >> libraries may load Firebird and when one of them calls the shutdown >> function, the other will not work anymore.

Re: [Firebird-devel] fb_shutdown in embedded mode

2019-01-24 Thread Adriano dos Santos Fernandes
On 24/01/2019 12:00, Vlad Khorsun wrote: > 24.01.2019 15:13, Jiří Činčura wrote: >> Vlad, is it OK to call this method multiple times (nothing else is >> called in between)? > >   Yes. All calls after first one is (almost) no-op > >> I'm asking because some application might load same library using

Re: [Firebird-devel] fb_shutdown in embedded mode

2019-01-24 Thread Vlad Khorsun
24.01.2019 15:13, Jiří Činčura wrote: Vlad, is it OK to call this method multiple times (nothing else is called in between)? Yes. All calls after first one is (almost) no-op I'm asking because some application might load same library using different paths via symlinks. And at least Window

Re: [Firebird-devel] fb_shutdown in embedded mode

2019-01-24 Thread Jiří Činčura
Vlad, is it OK to call this method multiple times (nothing else is called in between)? I'm asking because some application might load same library using different paths via symlinks. And at least Windows (haven't tested Mac or Linux) is smart enough to load it just once, but I see it from user

Re: [Firebird-devel] fb_shutdown in embedded mode

2019-01-22 Thread Jiří Činčura
>Preferably - yes, it is better to call it explicitly. Thanks. Will do it. -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] fb_shutdown in embedded mode

2019-01-22 Thread Vlad Khorsun
22.01.2019 16:09, Jiří Činčura wrote: Hi, do I need to call fb_shutdown on application exit when all connections are closed before the unloading happens by the OS? The README.fb_shutdown says I don't have to, but I remember some discussion here that it *should* preferably be called. Prefera