Symbian
Symbian OS Library

FAQ-0917 How can I manually activate my RunL() ?

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: Active Objects
Created: 08/29/2003 Modified: 11/18/2003
Number: FAQ-0917
Platform: Not Applicable

Question:
How can I activate an active object's RunL() without actually issuing an asynchronous request?

Answer:
The following code will cause an active object's RunL() to be called.

TRequestStatus* s=&iStatus;
User::RequestComplete(s, KErrNone);
SetActive();