×

Discussion Board

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

    question on HttpConnection

    I met a problem while developing applications on 7210/6610:

    It seems that if I started a HttpConnection to get data from a web site, the program consumes almost all the phone resources and the phone just hangs and the menus becomes not responsive during the data transfer (which needs one or two minutes in my environment). I used a thread to process the HttpConnection.

    Is there any one who also ever met such kind of problems? Are there any possible solutions?

    Thanks a lot.

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    8
    I would like to describe the problem in more details:

    I used InputStream::read() to get data from the httpconnection'
    s inputstream. The method will block if there is no data currently available (due to the delay in network or other reasons). However, the problem is , even though I process the httpconnection in another thread with min_priority, the read() method will block ALL other thread in the VM, including UI which causes the phone hangs!

    This happens in 7210/6610. however, in 6310i emulator, that read() method also blocks, but just that thread, not affecting other ones!

    It shouldn't happened in that way. I don't think this situation is so difficult to handle for the MIDP implementation. This will greatly limit the functionality of the programs.

    do you guys have any idea about this?

Posting Permissions

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