07.02.2018 13:26, Mark Rotteveel wrote:
On 7-2-2018 11:55, Mark Rotteveel wrote:
Someone reported a crash on shutdown of Firebird 2.5.8 Embedded in a C# application on stack overflow: https://stackoverflow.com/questions/48644878/appcrash-in-fbintl-dll-if-using-embedded-mode-in-my-c-app.

I can reproduce it with the provided example application.

I tried to reproduce this by recreating the example using Jaybird, but there it works OK. Does anyone have an idea what the cause might be, and if this would be something in Firebird Embedded itself, or with the ADO.net provider?

I found the cause, the connection pool was active in Firebird ADO.net, and the connections weren't closed at the time the engine was unloaded.

Shouldn't the engine be able to cope with this?

  Yes, and fb_shutdown handle it. But it can't handle it correctly when process
exits and Windows already unloaded some dlls and kill all other threads.

Regards,
Vlad


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to