Subject Re: AV in fbembed.dll_unloaded

Using an FPC (FreePascal) application against a remote server using fbembed.dll, the process crashed on newer versions of fbembed.dll (v2.5.2.26540 was the last version I tested that did not crash).
Strangely enough, fbembed+embedded db was not a problem.

0026561: Access violation with newer Firebird embedded versions - Free Pascal/Lazarus Bug Tracker


Adding a call to fb_shutdown seems to fix that problem. Currently testing whether this patch also fixes a problem on Debian x64 Linux with libfbembed.