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

fbintl.dll never get unloaded in Firebird 2.X Embedded after invoke isc_dsql_execute_immediate for CREATE DATABASE [CORE2186] #2616

Closed
firebird-issue-importer opened this issue Nov 13, 2008 · 6 comments

Comments

@firebird-issue-importer

Submitted by: Chau Chee Yang (cheeyang)

In Firebird 2.0 and 2.1 Embedded, I notice fbintl.dll will be loaded once I executed isc_dsql_execute_immediate for "CREATE DATABASE". However, the fbintl.dll never get unloaded after I free fbembed.dll.

This cause problems when I use Firebird 2.0 embedded and Firebird 2.1 embedded engine in same application where the fbintl.dll for both 2.0 and 2.1 is not compatible.

To solve the problem temporary, I unload the fbintl.dll library manually:

const FLibrary = 'fbembed.dll'

var s: string;
h: THandle;
begin
...
s := ExtractFilePath(FLibrary) + 'intl\fbintl.dll';
h := GetModuleHandle(PChar(s));
if h <> 0 then
FreeLibrary(h);
end;

Commits: ad24045

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 13, 2008

Commented by: Sean Leyne (seanleyne)

I don't understand why a *single* application needs to use 2 embedded engines (of different versions) at the same time.

Please explain.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 13, 2008

Commented by: Chau Chee Yang (cheeyang)

My application works with both ODS version 10.X and 11.X database, thus I may switch the firebird engine to access database depends on the ODS version. The reason why not upgraded to latest 11.1 version is I have other legacy apps that can't work with 11.X database yet.

Regardless of the above issue, I think it is a good habit to unload fbintl.dll when it is no longer needed.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 16, 2008

Modified by: @asfernandes

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5 Beta 1 [ 10251 ]

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 8, 2009

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 19, 2016

Modified by: @pavel-zotov

QA Status: No test

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Aug 12, 2016

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: No test => Cannot be tested

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

Successfully merging a pull request may close this issue.

None yet
2 participants