Re: [Firebird-devel] MacOS problem with dlclose

2022-01-24 Thread Adriano dos Santos Fernandes
On 24/01/2022 06:50, Alex Peshkoff via Firebird-devel wrote: > On 1/24/22 12:28, Alex Peshkoff via Firebird-devel wrote: > >> for FB3 and may be fb4 option 1 is a way to go. > > BTW, looks like we have 3.0.9 release soon. > As I talked earlier, FB 3 apparently was not affected. Now looking for

Re: [Firebird-devel] Database detach after shutdown

2022-01-24 Thread Vlad Khorsun
22.01.2022 14:42, Dimitry Sibiryakov wrote: Adriano dos Santos Fernandes wrote 22.01.2022 13:37:    After calling IDispatch::shutdown() an attempt to call     IAttachment::detach()     in embedded mode returns error "Database shutdown". But... why? Isn't IDispatch::shutdown already causes

Re: [Firebird-devel] MacOS problem with dlclose

2022-01-24 Thread Adriano dos Santos Fernandes
On 24/01/2022 07:51, Dimitry Sibiryakov wrote: > Adriano dos Santos Fernandes wrote 24.01.2022 11:37: >> If Firebird had an Engine class with state inside that instance, things >> would certainly be easy. >> >> But we rely on many global/static state. >> >> It's not very simple to just reload engin

Re: [Firebird-devel] Database detach after shutdown

2022-01-24 Thread Dimitry Sibiryakov
Adriano dos Santos Fernandes wrote 24.01.2022 11:52: If you do shutdown before disconnect, I'm not sure the software is written correctly. In this case if you do release I think it's going to work. How many examples and real life application check status after detach and do release on failu

Re: [Firebird-devel] Database detach after shutdown

2022-01-24 Thread Adriano dos Santos Fernandes
On 22/01/2022 09:42, Dimitry Sibiryakov wrote: > Adriano dos Santos Fernandes wrote 22.01.2022 13:37: >>    After calling IDispatch::shutdown() an attempt to call >>     IAttachment::detach() >>     in embedded mode returns error "Database shutdown". But... why? >> >> Isn't IDispatch::shutdown

Re: [Firebird-devel] MacOS problem with dlclose

2022-01-24 Thread Dimitry Sibiryakov
Adriano dos Santos Fernandes wrote 24.01.2022 11:37: If Firebird had an Engine class with state inside that instance, things would certainly be easy. But we rely on many global/static state. It's not very simple to just reload engine after shutdown when the library was not unloaded. Shouldn

Re: [Firebird-devel] MacOS problem with dlclose

2022-01-24 Thread Adriano dos Santos Fernandes
On 22/01/2022 12:48, Kovalenko Dmitry wrote: > Hello Adriano, > > If I understood correctly in this topic described same problem: > > https://groups.google.com/g/firebird-support/c/oO9c_ppmfRg/m/-ukO9L37DQAJ > > ? > It appears to be the same error, but AFAIK it currently happens only in MacOS.

Re: [Firebird-devel] MacOS problem with dlclose

2022-01-24 Thread Alex Peshkoff via Firebird-devel
On 1/24/22 12:28, Alex Peshkoff via Firebird-devel wrote: for FB3 and may be fb4 option 1 is a way to go. BTW, looks like we have 3.0.9 release soon. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] MacOS problem with dlclose

2022-01-24 Thread Alex Peshkoff via Firebird-devel
On 1/21/22 23:19, Dimitry Sibiryakov wrote: Adriano dos Santos Fernandes wrote 21.01.2022 20:08: 1) Disable unload timer in PluginManager in MacOS. Fastest and simplest (or any other way to disable plugins unload). 2) Makes it possible for engine plugin to relive when it was shut down and i