×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Super Contributor
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    763

    Wait dialog not appearing??

    Hi,
    I am implementing the Bt device discovery thing on my own.
    But I want to show the user a wait dialog which tells them
    that the discovery is in progress.
    But the dialog never comes up while the discovery is on.
    Code:
       CAknWaitDialog* iWaitDialog = new(ELeave)CAknWaitDialog(NULL, ETrue ); 
        iWaitDialog->ExecuteLD(R_AKNEXNOTE_WAIT_NOTE_SOFTKEY_CANCEL ); 
       TInt aNumofPhones; 
       TRAPD(error,aNumofPhones = iBtObj->StartBtDeviceDiscoveryL());    
       if(error == KErrNone){ 
    //      UpdateList(); 
       } 
       else{ 
          //show the error msg 
           
       } 
       iWaitDialog->ProcessFinishedL();
    Anybody any hints why its not working?
    Bye.
    --Mayur.

  2. #2
    Registered User
    Join Date
    Aug 2003
    Location
    Oulu, Finland
    Posts
    1,122
    Is your device discovery based on synchronous calls, i.e. User::WaitForRequest() and not on active objects? Then you are not giving your active scheduler a chance to let the wait dialog draw and update itself.

    Lauri

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×