Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The database file cannot be released immediately when disconnected [DNET702] #653

Closed
firebird-automations opened this issue Sep 29, 2016 · 3 comments

Comments

@firebird-automations
Copy link

Submitted by: fish (fishcodelib)

using (FbConnection fbconn = new FbConnection("Database=F:\\fb[30|25].gdb;User ID=SYSDBA;Password=masterkey;Pooling=False"))
{
fbconn.Open();
fbconn.Close();
FbConnection.ClearAllPools();

File\.Delete\("F:\\\\fb30\.gdb"\); //Failed in FB 3\.0\.0 and 3\.0\.1\(x64\) \-\-\> The process cannot access the file 'F:\\\\fb30\.gdb' because it is being used by another process\.
File\.Delete\("F:\\\\fb25\.gdb"\); //Worked in FB 2\.5\.5\(x64\)

}

@firebird-automations
Copy link
Author

Commented by: @cincuranet

I think this is expected. There has never been a guarantee that the file would be immediately released. And given the FB3 changes, I could image couple of milliseconds before the file is released. And now there's also the linger interval in play.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: In Progress [ 3 ] => Closed [ 6 ]

resolution: Won't Fix [ 2 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants