This article has been edited incorrectly when it became official item in Knowledge Base. Note that you have to call SetUpdateOptions periodically. Once is not enough as the edited article now suggests! There is also some overhead (resets some state?) when calling SetUpdateOptions every time before issuing the request.
Hello friends,
I tried this solution, but it didn't work.
So I studied the problem and I've found a real solution, it works fine.
This is my solution:
I have a CActive object that handles GPS asyncronous requests.
When I get KErrInUse error, I destroy my CActive object, and then I create it again.
After that, I can use GPS again for 4-5 minutes or more.
This process is repeated each time KErrInUse occurs.
Hope this helps,
Raffael
Hello friends,
I tried this solution, but it didn't work.
So I studied the problem and I've found a real solution, it works fine.
This is my solution:
I have a CActive object that handles GPS asyncronous requests.
When I get KErrInUse error, I destroy my CActive object, and then I create it again.
After that, I can use GPS again for 4-5 minutes or more.
This process is repeated each time KErrInUse occurs.
Hope this helps,
Raffael