Hello, i have created an CActive Object, now i want to use it as a async thread. (So i need to make it execute some code repeadly)
But i don't know how, i found that it need CActiveScheduler, but the descriptions and codes provided over internet are useless for me (they do not work)
all i get is
E32USER-CBASE 43 error


here is my code:

Code:
 PC_EYE = TMobEyeThread::NewL(); //CActive object class
scheduler = new (ELeave) CActiveScheduler(); //CActiveScheduler public variable in container class



	 CleanupStack::PushL(scheduler);
	 CActiveScheduler::Install(scheduler);
	
		scheduler->Add(PC_EYE); 
		PC_EYE->StartThread();
	 CActiveScheduler::Start(); 
	 CleanupStack::PopAndDestroy(scheduler);
and another thing that could be important
this is PC_EYE var
Code:
TMobEyeThread::TMobEyeThread() : CActive(EPriorityStandard)
    { 
	CActiveScheduler::Add(this); 
    }
anyway i am not sure if its executed during creation, and i dont know why the namespace of CActiveScheduler:: is used instead of other variable