Files
soci/docs
Vadim Zeitlin bcb843493b Fix possible crashes on unloading dynamically loaded SOCI library
There were multiple problems with calling unload_all() from the static
object destructor:

1. Under Windows, this is explicitly disallowed when the destructor is
   executed under the global loader lock, which is the case when SOCI is
   built as a shared library, so never do it there.

2. Under Unix, this could result in unloading the core library itself,
   containing unload_all() code, if SOCI core was dynamically loaded
   using dlopen() or was linked in a usual way into another shared
   library which was loading with dlopen(), i.e. any kind of plugin.

Fix this by simply not trying to unload the backends automatically from
a global object destructor and document that unload_all() must be called
if it is really important to unload them.

Also mention unload(), which previously didn't appear in the
documentation at all, just like unload_all().
2026-09-01 19:35:54 +02:00
..
2025-04-09 16:26:52 +02:00
2026-06-15 19:04:51 +02:00
2025-03-04 18:03:53 +01:00
2024-03-19 19:24:44 +01:00
2026-01-14 14:24:39 +01:00
2025-03-04 18:03:53 +01:00