[Firebird-devel] IPluginModule::doClean() call point

2021-07-13 Thread Dimitry Sibiryakov
Hello All. Is doClean() supposed to be guaranteed to be called before plugin library unloading process? For Firebird 4 (current snapshot) in embedded I see that it is called after some global variables of the library are already destructed, i.e. it is either called from DLLMain or we h

Re: [Firebird-devel] IPluginModule::doClean() call point

2021-07-13 Thread Alex Peshkoff via Firebird-devel
On 7/13/21 6:32 PM, Dimitry Sibiryakov wrote: Hello All.   Is doClean() supposed to be guaranteed to be called before plugin library unloading process?   For Firebird 4 (current snapshot) in embedded I see that it is called after some global variables of the library are already destructed,

Re: [Firebird-devel] IPluginModule::doClean() call point

2021-07-13 Thread Dimitry Sibiryakov
13.07.2021 17:48, Alex Peshkoff via Firebird-devel wrote: - your process called exit() and due to it plugin is going to be unloaded, this fact is detected by dtor of UnloadDetectorHelper, which also calls doClean, but in this case some globals may be already destroyed, you need to manually contr