id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 4247,boost::asio access violation on mingw32,boost@…,chris_kohlhoff,"On a mingw32 build of libs/asio/example/http/async_client.cpp using gcc 4.5, an access violation is created when the HTTP client is pointed to an address which refuses the connection. When adding a `LoadLibrary(""exchndl.dll"");` (stack dump tool from mingw-utils), I get the following stack trace: Z:\tmp\a.exe caused an Access Violation at location 004277d1 in module Z:\tmp\a.exe Reading from location 00000200. Registers: eax=00000051 ebx=00123df0 ecx=00a4faa0 edx=00000200 esi=00a4f9e4 edi=00a4faac eip=004277d1 esp=00a4f960 ebp=00a4f9f8 iopl=0 nv up ei pl nz na pe nc cs=0073 ss=007b ds=007b es=007b fs=0033 gs=003b efl=00010202 Call stack: 004277D1 Z:\tmp\a.exe:004277D1 boost::system::error_code::message /opt/boost-mingw32/include/boost/system/error_code.hpp:350 004233EF Z:\tmp\a.exe:004233EF boost::_mfi::mf1::operator() /opt/boost-mingw32/include/boost/bind/mem_fn_template.hpp:165 004205A2 Z:\tmp\a.exe:004205A2 error_code /opt/boost-mingw32/include/boost/system/error_code.hpp:315 0041FBA9 Z:\tmp\a.exe:0041FBA9 00401978 Z:\tmp\a.exe:00401978 boost::system::error_code::operator void (*)() /opt/boost-mingw32/include/boost/system/error_code.hpp:357 004010A5 Z:\tmp\a.exe:004010A5 When compiling with -DBOOST_ASIO_DISABLE_THREADS, I get the following error message instead: Exception: thread: Unknown error",Bugs,closed,Boost 1.43.0,asio,Boost 1.44.0,Problem,worksforme,,