hi

I m using recursivly loading directory method in Run() function of QThread.
i m giving definiton of this method in other class and displaying in treeWidget.
when i m calling this method using object of this class in Run() method

#include "otherclass.h"
void class::threadFunc()
{
////
}
void class::Run()
{
otherclass *obj = NULL;
obj = new otherclass;
while(!bFalse)
{
obj->method(QString path);
}
}

///
class obj;
void otherclass::fun()
{
obj.threadFunc();
}


can u give me suggestions that why this happens..i m creating thread obj in other class and other class obj in thread class....i m confusing...it is giving error....how i use the other class function in Run() method....