Boost logo

Boost Users :

Subject: [Boost-users] [boost-users][signal] When can a connection become NULL ?
From: Oliver Kania (kania.oliver_at_[hidden])
Date: 2008-11-21 07:42:00

I have the problem of a connection becoming invalid (being set to NULL) even
none of the things mentioned in the signals documentation happens:

Signal/slot disconnections occur when any of these conditions occur:


   The connection is explicitly disconnected via the connection's
disconnectmethod directly, or indirectly via the signal's
   disconnect method or scoped_connection's destructor.

   A trackable object bound to the slot is destroyed.

   The signal is destroyed.

Is anyone aware of other conditions under which a connection could become

Here is a code snippet:

boost::signal<int(vtkLookupTable*)> m_signal;
boost::signals::connection m_connection;
CScalarBarLayerGeometry* l_receive =
m_connection =

The first time I invoke m_connection.connected()
it returns true. The second time it returns false and the connection is

Any help would be appreciated.
Best regards, Oliver

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at