Menu

#339 Hangs in log4cplus::Initializer initializer;

v1.2.0
open
None
5
2017-03-04
2017-03-03
No

Used log4cplus-2.0.0-rc1. log4cplus added static library to visio extension, hangs in first line log4cplus::Initializer initializer;

Discussion

  • Václav Haisman

    Václav Haisman - 2017-03-03

    Can you provide a call stack?

    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.

     
  • Václav Haisman

    Václav Haisman - 2017-03-03
    • assigned_to: Václav Haisman
     
  • Alexandr Gordienko

    Calling from constructor global object. Where should I initialize log4cplus to insert it into the COM object?

     
    • Václav Haisman

      Václav Haisman - 2017-03-03

      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.

       
  • Alexandr Gordienko

    Please advise working version for insertion it into COM-objects?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.