Subject | Re: [firebird-support] Re: Identifying whether client library is embedded or normal |
---|---|
Author | Nando Dessena |
Post date | 2006-04-10T12:07:38Z |
Adam,
A> I will do some tests later to find out whether I had my head on
A> backwards that day. I did not check which dll was being loaded and I
A> probably shouldn't just assume it loaded the renamed embedded dll in
A> the folder I was executing from.
absolutely. There are complex and varying rules about where to load
libraries from in Windows, especially in server editions. That's why I
always specify full paths to LoadLibrary (something like
ExtractFilePath(ParamStr(0)) + 'fbembed.dll') and as an additional
measure I never rename fbembed.dll unless I really have to.
Ciao
--
Nando Dessena
======================================================
I support Firebird, I am a Firebird Foundation member!
Join today at http://www.firebirdsql.org/ff/foundation
======================================================
A> I will do some tests later to find out whether I had my head on
A> backwards that day. I did not check which dll was being loaded and I
A> probably shouldn't just assume it loaded the renamed embedded dll in
A> the folder I was executing from.
absolutely. There are complex and varying rules about where to load
libraries from in Windows, especially in server editions. That's why I
always specify full paths to LoadLibrary (something like
ExtractFilePath(ParamStr(0)) + 'fbembed.dll') and as an additional
measure I never rename fbembed.dll unless I really have to.
Ciao
--
Nando Dessena
======================================================
I support Firebird, I am a Firebird Foundation member!
Join today at http://www.firebirdsql.org/ff/foundation
======================================================