Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2007

    How do I cancel asynchronous GetAvailableIaps()

    I'm using the asynchronous version of the MWlanMgmtInterface::GetAvailableIaps() method from the WLAN Management API in the SDK plugin.

    The only cancellation method on MWlanMgmtInterface is CancelNotifications(), but that seems to be there to cancel ActivateNotificationsL() rather than GetAvailableIaps().

    I've switched to the synchronous version of GetAvailableIaps() for now, but I don't like the thread-blocking that it entails.

    Any ideas? Having an asynchronous provider API without a corresponding cancellation method seems broken.

  2. #2
    Registered User
    Join Date
    Apr 2007

    Re: How do I cancel asynchronous GetAvailableIaps()

    For whatever it may be worth, deleting the CWlanMgmtClient instance seems to do the trick re: canceling. So I'm treating the CWlanMgmtClient instance as a transient resource that only exists while the IAP "scan" is pending. Since such scans aren't a frequent event, I'm not too worried about the overhead of bringing up and tearing down the object every time.

    I did try CancelNotifications() and that resulted in a hung thread, so it's a no go.

    I would appreciate feedback on a less yucky way of canceling this async operation though. Perhaps another API is a better choice?

Similar Threads

  1. Cancel asynchronous Service not working
    By blueskynorth in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2009-04-17, 13:51
  2. No cancel of scan in WLAN Management API
    By martinpeterzon in forum Symbian
    Replies: 0
    Last Post: 2009-02-27, 08:24
  3. How to cancel a http connection mid-way
    By capricious28 in forum Mobile Java General
    Replies: 0
    Last Post: 2007-08-10, 10:42
  4. weird CANCEL button behaviour
    By securityfocus in forum Symbian
    Replies: 0
    Last Post: 2005-03-18, 14:24
  5. NMSS SDK 1.2 and EAIF Terminating Asynchronous Transactions
    By jtblatt in forum General Messaging
    Replies: 0
    Last Post: 2003-09-09, 02:10

Posting Permissions

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