At what point in your code are you instantiating log4cplus::Initializer, if you are doing it from inside DllMain() or from constructor of global object then you are out of luck. Such use is not supported.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You are hitting a limitation of the C++11 mutexes, etc., support in Visual Studio which are used during the initialization. Where you initialize it is up to you but it has to be during normal operation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can you provide a call stack?
At what point in your code are you instantiating
log4cplus::Initializer
, if you are doing it from insideDllMain()
or from constructor of global object then you are out of luck. Such use is not supported.Calling from constructor global object. Where should I initialize log4cplus to insert it into the COM object?
You are hitting a limitation of the C++11 mutexes, etc., support in Visual Studio which are used during the initialization. Where you initialize it is up to you but it has to be during normal operation.
Please advise working version for insertion it into COM-objects?