21 Nov
2006
21 Nov
'06
9:47 p.m.
void SomeClass::startPolling() { m_pCtrl = new Controller; boost::function
funcPoll; funcPoll = &_pollMode; m_thr = new boost:thread(boost::bind( funcPoll, *m_pCtrl)); // never get past this line (unless copy ctor modified) }
// snip
Any help/explanation would be appreciated. Rob
Try this instead: void SomeClass::startPolling() { m_pCtrl = new Controller(); m_thr = new boost::thread(boost::bind(&Controller.ThreadFunc, m_pCtrl)); std::cout << "Got here" << std::endl; } Eric