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

embedded: after fb_shutdown some files stay locked [CORE5299] #5577

Open
firebird-automations opened this issue Jul 1, 2016 · 8 comments · May be fixed by #7702
Open

embedded: after fb_shutdown some files stay locked [CORE5299] #5577

firebird-automations opened this issue Jul 1, 2016 · 8 comments · May be fixed by #7702

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Nick (nick)

Is duplicated by CORE6014

Votes: 2

icudt52l.dat
ib_util.dll
icudt52.dll
icuuc52.dll
msvcr100.dll

After this:
---
fb_shutdown(60000, fb_shutrsn_app_stopped);
FreeLibrary(LibHandle);
--

upd: firebird.msg is not locked.

@firebird-automations
Copy link
Collaborator Author

Modified by: Nick (nick)

description: icudt52l.dat
ib_util.dll
icudt52.dll
icuuc52.dll
msvcr100.dll
firebird.msg

After this:
---
fb_shutdown(60000, fb_shutrsn_app_stopped);
FreeLibrary(LibHandle);
--

=>

icudt52l.dat
ib_util.dll
icudt52.dll
icuuc52.dll
msvcr100.dll

After this:
---
fb_shutdown(60000, fb_shutrsn_app_stopped);
FreeLibrary(LibHandle);
--

upd: firebird.msg is not locked.

@firebird-automations
Copy link
Collaborator Author

Commented by: Nick (nick)

please response

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

Link: This issue is duplicated by CORE6014 [ CORE6014 ]

@SkliarOleksandr
Copy link

Hey guys, any updates when it will be fixed?

@hvlad
Copy link
Member

hvlad commented Aug 4, 2023

What you mean by "locked" and what actual problem you have ?

@SkliarOleksandr
Copy link

Well, "locked" means I can't delete/overwrite these files after closing fbclient.dll handle. I use fb 4.0.2 embedded under 64bit app. Everything works well but when I close the app (call FreeLibrary(Handle)), some files from fb still remains in memory:
'fb64\ib_util.dll'
'fb64\icudt63.dll'
'fb64\icudt63l.dat'
'fb64\icuin63.dll'
'fb64\icuuc63.dll'
'fb64\intl\fbintl.dll'
'fb64\msvcp140.dll'
'fb64\vcruntime140.dll'

@hvlad
Copy link
Member

hvlad commented Aug 7, 2023

It is not very easy to unload some of these DLL's. I doubt we can do something with MSVC CRT ones, for example.
Thus, before start impl, I want to be 100% sure it is really needed.
Why you want to delete these files while your app is running ?
Do you need to delete all of these files or some of them (which) ?

@SkliarOleksandr
Copy link

It's simple - it's in-app backup/restore and app-upgrade procedures. It's not critical, really. Right now we just rename these files, and it works. Anyway, thank you, hvlad!

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