Re: [Firebird-devel] Database detach after shutdown
Em sáb., 22 de jan. de 2022 07:57, Dimitry Sibiryakov escreveu: >Hello All. > >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 all databases to be disconnected? Adriano Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] Database detach after shutdown
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 all databases to be disconnected? In this case the second disconnect attempt should be successful no-op + release(), no?.. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] Database detach after shutdown
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 already causes all databases to be >> disconnected? > > In this case the second disconnect attempt should be successful no-op > + release(), no?.. > 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. Adriano Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] Database detach after shutdown
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 failure? Things would be much simpler if release() should be called always. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] Database detach after shutdown
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 all databases to be disconnected? In this case the second disconnect attempt should be successful no-op + release(), no?.. No. In this case there is a bug in application that will not be found. Regards, Vlad Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel