Boost logo

Boost Users :

From: Edward Diener (eddielee_at_[hidden])
Date: 2004-06-05 12:12:47


Russell Hind wrote:
> I'm looking for a way to get a boost::function to do a callback to a
> method of a managed C++ class in VS7.1. Has anyone managed to do
> this yet?

Have you tried pinning your object and then create a functor from that pin
using boost::bind ? I believe your object must stay pinned else it can move
in GC memory and the address which is eventually called will go to a member
function which is no longer there.


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