.NET provider should explicitly call fb_shutdown() on application exit when 
using Firebird Embedded
---------------------------------------------------------------------------------------------------

                 Key: DNET-806
                 URL: http://tracker.firebirdsql.org/browse/DNET-806
             Project: .NET Data provider
          Issue Type: Bug
          Components: ADO.NET Provider
    Affects Versions: 5.12.1.0
            Reporter: Mark Rotteveel
            Assignee: Jiri Cincura


If the apllication exits and there are still connections open using Firebird 
Embedded, then the exit may produce an access violation (0xc0000005 error). The 
root cause is that the fbembed.dll/fbclient.dll will call fb_shutdown() itself, 
but one of the other libraries (eg fbintl.dll) may already have been unloaded.

To prevent this, on exit the .NET provider should explicitly call fb_shutdown 
for any of the native libries loaded (but especially for embedded).

See also "Crash Firebird 2.5.8 Embedded with Firebird Ado.net provider." on 
Firebird-devel.

Related: DNET-802 (cleaning up the connection pool on exit will also prevent 
the access violation).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to