Hi All,
I am writing some code on "HandleServerAppContainerViewActivatedL" function.
Now I want to invoke a new thread on a worker function Test().
For this I am writing code like this...
RThread mythread;
_LIT(KThreadName, "My Thread");
const KHepaSize = 0x800;
TInt result = mythread.Create(KThreadName, (TThreadFunction)test, KDefaultStackSize,KMinHeapSize, KMinHeapSize, KHeapSize, this, EOwnerThread);
User::LeaveIfError(result);
mythread.SetPriority(EPriorityMuchMore);
mythread.Resume(); // Run the thread
and the test function is like ...
void test(TAny* aPtr){
------
}
but on compilation it says undefined test.
I tried the function like CServerAppContainerView::test...but even in this case it gives undefined test.
how can I create a thread for a user defined worker function?
Thanks



