Delay offloading embedded Firebird

After closing the application, fbclient.dll remains in memory for about 3 seconds. So it locks the database file and prevents my application from unloading. I am using built-in Firebird.

The problem is event related. I am registering for events using isc_que_events. If I don't register for events the dll is unloaded instantly.

I ran into this problem in previous versions of FB and now in 2.1.3 it is still the same.

The same issue is documented here http://tracker.firebirdsql.org/browse/CORE-15 , but resolved as "Unable to reproduce".

Does anyone run into this issue or is there something wrong with my code?

+2


source to share


2 answers


I rewrote my logic and now I don't need to subscribe to local events. So this is no longer a problem for me. But the problem still remains.



0


source


Are you using a .NET provider? This allows connections to be opened in the pool, this might be the problem. Try to clear the connection pool before exiting the application:



FbConnection.ClearAllPools();

      

+2


source







All Articles