As http://discussion.forum.nokia.com/fo...d.php?t=101999 states,
I first get the main thread handle in main thread like the following
and then, in my secondary thread,I duplicated main thread and call main thread's RequestComplete()like the following,Code:// in main thread iMainThread = RThread();
Where I did wrong?Code:// in secondary thread RThread thread; thread.Duplicate( iMainThread ); //Is it necessary to do like this? thread.RequestComplete(status, KErrNone); //But after I called this function, the RunL() of the //active object to which status belongs does not get called immediately // in main thread,why?? //As I knew that I in main thread called secondary thread's RequestComplete(),that related RunL() in // secondary thread got called immediately,this happened in my app.
Thanks in advance.