I'm using Visual Studio 2012 for my project and I'm a newbie at using boost, so I encountered with a runtime problem trying to initialize this:
FClient::FClient(const std::string & logName, const std::string & logPassword, udp::endpoint hostpoint) : mSocket(mService), mLogName(logName), mLogPassword(logPassword), mEndPoint(hostpoint)
{
}
Where mSocket is a boost udp socket, and mService is a boost asio io_service (both private members of FClient), and I guess the rest of the calls (which basically are string inits) are not useful to detect the error. I hope the error is on mSocket(mService) initialization which is of type:
boost::asio::ip::udp::socket(boost::asio::io_service)
Visual Studio call stack: http://pastebin.com/fjwWbhst
I'm using windows 8 with boost 1.5.6 and I'm defining: -D_WIN32_WINNT=0x0602
Thank you,
-lilEzek
FClient
definition (with its members) – Igor R.