Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003

    Canceling a WAP data transfer

    I use WAP to get some data from the server. However, user must be able to cancel the data transfer.
    To be simple: my WAP engine class has following two members:
    RWSPCOConn iConnection;
    RWSPCOTrans iTransaction;

    So I call the iTransaction.Abort(0). However, if I try to call iConnection.CreateTransaction(RWSPCOConn::EGet,iUrl,Headers,Body,iTransaction) again, it returns EInvalidState (-5469). What's wrong?

  2. #2
    Registered User
    Join Date
    Aug 2003
    Oulu, Finland
    I've also spent some quality time with EInvalidState.. At least you should Release() the transaction after aborting it. I think you should also wait for a specific event on the connection (EAbort_ind_t) before creating a new transaction.


Posting Permissions

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