Discussion Board

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

    HttpConnection on 7650

    I know a lot of questions have been asked regarding the bugs with the 7650's HttpConnection... but i was just wondering...

    I have been able to write, sucessfully, an application which can communicate with a remote server. I was able to do this without having to change any gateway settings. All I did was place the connection code in a separate thread.

    The problem I am having now is that after a period of time using the application, the phone refuses to make any more connections to the server. At this point the only option is to restart the phone and run the application again.

    I don't think that the problem is with my code but i could quite easily be wrong.

    Has anyone else had a similar problem and if so a solution to get around it?


  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003

    RE: HttpConnection on 7650


    It is good way to use thread in your http connection because if something goes wrong then it will not block totally your midlet,

    After you have finished your Http connection be carefull that
    the http connections and streams are closed.
    and use finally{ } block at the end of try {] catch() to close connection and set the streams to null.

    This is good way to you code and avoid any possible problems what comes when connection is not closed and is recerving memory.

    I hope this helps you out

Posting Permissions

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