Jump to content
  • Advertisement
Sign in to follow this  
Valere

boost::signals debugging

This topic is 3588 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!