*.h -------------------------------------- class CAutoObList : public CObject { public: CAutoObList() { size = 10; p = new int[size]; for(int i=0; iSuspendThread(); delete pThread; pThread = NULL; } } void testThread(); }; *.cpp -------------------------------------------------------- CAutoObList autoList; UINT CAutoObListThread(LPVOID object) { // A *pA = ((A*) object); for(;;) { autoList.Output(); Sleep( 2000 ); } return 0; } void A::testThread() { if( pThread == NULL ) pThread = AfxBeginThread(CAutoObListThread, this,THREAD_PRIORITY_HIGHEST); } output: ----------------- 0: 0 1: 1 ... 9: 9 hope can help!