On 4/15/21 8:21 PM, Adriano dos Santos Fernandes wrote:
Can you send me full test (or patch)? I want ot test on Android.
Attached test.
Here is results (init.cpp is showed many times because it's included in
many libraries):
----
Same result on android:
eneric_arm64:/data/firebird # bin/isql empty.fdb
CtorDtorDebug::CtorDtorDebug - utl.cpp 5000
CtorDtorDebug::CtorDtorDebug - init.cpp 5000
CtorDtorDebug::CtorDtorDebug - utl.cpp 5400
CtorDtorDebug::CtorDtorDebug - init.cpp 5400
CtorDtorDebug::CtorDtorDebug - utl.cpp 5500
CtorDtorDebug::CtorDtorDebug - init.cpp 5500
CtorDtorDebug::CtorDtorDebug - utl.cpp 6000
CtorDtorDebug::CtorDtorDebug - init.cpp 6000
CtorDtorDebug::CtorDtorDebug - init.cpp 5000
CtorDtorDebug::CtorDtorDebug - init.cpp 5400
CtorDtorDebug::CtorDtorDebug - init.cpp 5500
CtorDtorDebug::CtorDtorDebug - init.cpp 6000
CtorDtorDebug::CtorDtorDebug - init.cpp 5000
CtorDtorDebug::CtorDtorDebug - init.cpp 5400
CtorDtorDebug::CtorDtorDebug - init.cpp 5500
CtorDtorDebug::CtorDtorDebug - init.cpp 6000
CtorDtorDebug::CtorDtorDebug - init.cpp 5000
CtorDtorDebug::CtorDtorDebug - init.cpp 5400
CtorDtorDebug::CtorDtorDebug - init.cpp 5500
CtorDtorDebug::CtorDtorDebug - init.cpp 6000
CtorDtorDebug::CtorDtorDebug - init.cpp 5000
CtorDtorDebug::CtorDtorDebug - init.cpp 5400
CtorDtorDebug::CtorDtorDebug - init.cpp 5500
CtorDtorDebug::CtorDtorDebug - init.cpp 6000
Database: empty.fdb, User: SYSDBA
SQL>
CtorDtorDebug::~CtorDtorDebug - init.cpp 6000
CtorDtorDebug::~CtorDtorDebug - init.cpp 5500
CtorDtorDebug::~CtorDtorDebug - init.cpp 5400
CtorDtorDebug::~CtorDtorDebug - init.cpp 5000
CtorDtorDebug::~CtorDtorDebug - init.cpp 6000
CtorDtorDebug::~CtorDtorDebug - init.cpp 5500
CtorDtorDebug::~CtorDtorDebug - init.cpp 5400
CtorDtorDebug::~CtorDtorDebug - init.cpp 5000
CtorDtorDebug::~CtorDtorDebug - init.cpp 6000
CtorDtorDebug::~CtorDtorDebug - init.cpp 5500
CtorDtorDebug::~CtorDtorDebug - init.cpp 5400
CtorDtorDebug::~CtorDtorDebug - init.cpp 5000
CtorDtorDebug::~CtorDtorDebug - init.cpp 6000
CtorDtorDebug::~CtorDtorDebug - init.cpp 5500
CtorDtorDebug::~CtorDtorDebug - init.cpp 5400
CtorDtorDebug::~CtorDtorDebug - init.cpp 5000
CtorDtorDebug::~CtorDtorDebug - init.cpp 6000
CtorDtorDebug::~CtorDtorDebug - utl.cpp 6000
CtorDtorDebug::~CtorDtorDebug - init.cpp 5500
CtorDtorDebug::~CtorDtorDebug - utl.cpp 5500
CtorDtorDebug::~CtorDtorDebug - init.cpp 5400
CtorDtorDebug::~CtorDtorDebug - utl.cpp 5400
CtorDtorDebug::~CtorDtorDebug - init.cpp 5000
CtorDtorDebug::~CtorDtorDebug - utl.cpp 5000
generic_arm64:/data/firebird #
It should be given init_priority 0 or 1, that code must execute
very-very first.
As default is 65535, I just used some smaller value.
We should better probably avoid a too low value to not interfere with
things of the CRT.
Taking into an account docs quality - let it be not to small.
And I think this solution is for next (4.1 or 5.0) version?
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel