chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.71k stars 1.19k forks source link

Crash on Windows, good on Linux. #1201

Open Aleksoid1978 opened 1 year ago

Aleksoid1978 commented 1 year ago

Example to reproduce: https://gist.github.com/Aleksoid1978/6d60ef92cdb52ccc2319a7bba313cc66 On Windows crash on exit, on Linux good. Crash only in Release, in Debug good.

Aleksoid1978 commented 1 year ago

I found out what exactly is the problem on MSVC - the flag "/Zc:__cplusplus", if you remove it - everything is fine. Judging by config.hpp - perhaps the problem is related to alignof.

kahotv commented 1 year ago

is 0xC0000005?