From: Jason Turner (lefticus_at_[hidden])
Date: 2008-07-17 15:35:02
Yes, you are correct that it was an unhandled exception. I'm a bit disturbed
that gdb was not cluing me into that.
However, adding the line:
Does not solve the problem.
On Tue, Jul 1, 2008 at 6:28 AM, Christopher Kohlhoff <chris_at_[hidden]>
> Jason Turner wrote:
>> Some ASIO test code is crashing in a way that I do not understand. GDB is
>> unable to debug it (no stack available on crash) and the error is a rather
>> obtuse "This application has requested the Runtime to terminate it in an
>> unusual way. Please contact the application's support team for more
>> Test code which crashes:
>> #include <boost/asio/ip/address.hpp>
>> #include <iostream>
>> int main()
>> std::cout << boost::asio::ip::address::from_string("22.214.171.124") <<
> This is probably due to winsock not being initialised automatically as it
> is supposed to. Does the following inclusion sequence make it work?
> #include <boost/asio/ip/address.hpp>
> #include <boost/asio/detail/winsock_init.hpp>
> If winsock is not initialised then from_string will fail with an exception,
> which you're not catching.
> Unsubscribe & other changes:
-- http://emptycrate.com Games, Programming, Travel & other stuff
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk