I wrote a utility to abstract sending a data buffer to a central server with a single function call. I verified it works, and then split out the functionality into a library (.lib). I tried using it in a test application, but keep getting an "Access violation reading location 0x00000000" error. It occurs in the call:
socket_.async_receive_from(
boost::asio::buffer(data_, max_length), sender_endpoint_,
boost::bind(&CommIn::handle_receive_from, this,
boost::asio::placeholders::error,
boost::asio::placeholders::bytes_transferred));
I'm using Visual C++ 2005 Express, and a UML to C++ modeler and code generator called Rhapsody. I'm not sure where to even begin troubleshooting this.