From: Christian Henning (chhenning_at_[hidden])
Date: 2006-07-17 15:19:21


Please use a smart pointer.

in class declaration:

   typedef boost::scoped_ptr<boost::thread> tThread_Ptr;
   tThread_Ptr _spThread;

in class constructor or wherever:

        _spThread.reset( new boost::thread( boost::bind( _run
                                                  , this )));

Regards,
Christian