Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User pushpradhan's Avatar
    Join Date
    Jul 2003
    Posts
    3
    I have a midlet that makes two consecutive http requests, one in a first thread, and the second by a method call made by the first thread that spawns another thread.

    The second request gave me an exception when I tested it on the 3650 (ran perfectly on the emulator), but when I inserted a 500 ms delay before starting the second thread, I did not get the exception.

    Can anybody shed some light on this ?

    Push

  2. #2
    Super Contributor shmoove's Avatar
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    I don't think you can make more than one concurrent connection. I guess the second connection (without adding the delay) wasn't waiting for the first connection to be finished.

    shmoove

  3. #3
    Registered User axisperfect's Avatar
    Join Date
    Oct 2003
    Posts
    10
    How'd you add the delay? (e.g. sleep(), wait(), loop?)

    I tried doing the same, but had no improvement. Then again, I'm having a polling connection and a manual connection, and I'm not sure I can 100% avoid them clashing with each other.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved