-
-
Notifications
You must be signed in to change notification settings - Fork 931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
easylogging throw on HeapAlloc during initialization for static build with thread-safe (windows, vcpkg, static, thread-safe) #842
Comments
I have a minimal project ready to demonstrate the problem. Some additional notes:
|
Further reading and debugging indicates this may be due to it being a static compilation. The actual HeapAlloc error occurs during creation of el::base::Storage. To debug I replaced INITIALIZE_EASYLOGGINGPP AS FOLLOWS: And the trace shows it fails in Logger* RegisteredLoggers::get |
I also have this issue. @wluter did you ever find a solution? |
I did not. I ran out of time trying so I moved on to use g3log instead. I have had tremendous success with it so I have abandoned easyloggingpp. NOTE: if you need multiple log files then g3log is more work - it has a single stream sink and you have to create your own sinks for multiple log files. |
Thank you so much! I'll give g3log a try! |
easyloggingpp from vcpkg seems to throw during INITIALIZE_EASYLOGGINGPP when used in a static build on Windows with thread-safe feature enabled. The error involves heap allocation.
It is a 64 bit MFC application on windows with static build and uses vcpkg for several components including easyloggingpp
Stack Trace:
ntdll.dll!00007ffb4eabe414() Unknown
ntdll.dll!00007ffb4eabb44d() Unknown
The text was updated successfully, but these errors were encountered: