boost::signals debugging
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?
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement