
18 Nov
2009
18 Nov
'09
9:37 a.m.
Note that shared_from_this will not work unless object is created on heap and placed in a shared_ptr.
Thanks. Now it works. While binding I passed "this" instead of "shared_ptr", like this boost::bind(&aa::HandleWrite,this/*shared_from_this()*/,boost::asio::placeholders::error)
Creating asynchronous operation handlers on stack does not make much sense.
Why do you say this? Is there any chance of crashing the application? ______________________________________ Scanned and protected by Email scanner