|
Boost Users : |
Subject: Re: [Boost-users] Library failing
From: Mathew Benson (mathew.benson_at_[hidden])
Date: 2009-11-06 23:56:34
It took a while to figure out the parameters, but boost::bind,
boost::asio::placeholders::bytes_transferred, and
boost::asio::placeholders::error were all null. I can't figure out
what I d differently that it worked when is was combined but broke in
a library. How do I set these? Is there a boost init call?
Sent from my iPhone
On Nov 6, 2009, at 7:44 PM, OvermindDL1 <overminddl1_at_[hidden]> wrote:
> On Fri, Nov 6, 2009 at 3:08 PM, Mathew Benson
> <mathew.benson_at_[hidden]> wrote:
>> 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.
>
> Debug into it and see what pointer is null at that call, then find out
> where that pointer should be set and why it is not.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net