-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
4.7.0
-
None
-
symbian^3 emulator and hw
-
4c9651219140141da49d0ea965544d8f64dbf323, 113a23a61b3ac840cfdec2d2297b7881f495c924
Using the QNetworkAccessManager and CActiveSchedulerWait causes stray signal in CActiveScheduler::DoRunL function, because AccessPointAvailabilityScanner::StartScanning uses CActive::iStatus to get data synchronously from connectionmanager on first update. I have attached a simple application, which reproduces the bug.
The problem can be solved by introducing local TRequestStatus object and giving it to the connection manager:
symbianengine.cpp
if (iOwner.iFirstUpdate) { // On first update (the mgr is being instantiated) update only those bearers who // don't need time-consuming scans (WLAN). // Note: EBearerIdWCDMA covers also GPRS bearer TRequestStatus status; iConnectionMonitor.GetPckgAttribute(EBearerIdWCDMA, 0, KIapAvailability, iIapBuf, status); User::WaitForRequest(status); if (status.Int() == KErrNone) { iOwner.accessPointScanningReady(true,iIapBuf()); }