Václav Haisman
Václav Haisman
We have had issue #207 about this already and it seems it was fixed or attempted fixed.
Does this work for you? ```cpp #include int main() { log4cplus::Initializer initializer; } ``` You need to initialize and de-initialized log4cplus properly.
Can you get symbols for the `ucrtbased.dll`?
Also, does this not work only in your application or do all the tests also fail?
Do you have `log4cplus::Logger::shutdown();` anywhere? Preferably at the end of `main()` or `WinMain()`?
Please provide complete call stack for this crash.
OK, you need to put `log4cplus::Logger::shutdown()` at the end of your `main()`, `WinMain()`, or other appropriate place.
> At the beginning, log4cplus::initialize() is called in log4cplus dll before ones in my app. Yes, this is OK. Log4cplus tries to initialize itself automatically but shutdown has to be...
Well, I can't see anything immediately wrong, so let's try to go through a checklist. Are the run time libraries consistent? I.e., I see you are using log4cplusUD.dll, which is...
I suspect this might be a problem. Try building both your application and log4cplus with `/MDd`, e.g., with the DLL variant of the run time library. If you really require...