Sign in to follow this  

boost::signals debugging

This topic is 3376 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm running into some odd problems with a boost signal. A class that has connected to it via a boost::bind to a member function isn't getting the slot call. The class with the signal IS calling the signal, but things are sufficiently complex that I am not certain by reading the code what might be happening. I've been trying to debug to discover where the slot is getting disconnected, but boost seems to be a bit of a mess to debug. Does anyone have any tips on debugging these things?

Share this post


Link to post
Share on other sites
This might be obvious (and i havent used boost signals and slots for a while) - but if you are using the trackable class that gets subclassed into your listener, then it effecitvely monitors whether the listening object has been destroyed (had its destructor called) to transparently remove the bound callback from the signal site. It might be the case that you have inadvertently called this destructor.

Share this post


Link to post
Share on other sites

This topic is 3376 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this