×

Discussion Board

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

    hanging IO read() on 7650

    How is it possible to kill off a thread which is hung in a read() on an inputstream? I've tried closing the stream to force an IO exception, but this does not solve the problem. device is 7650 - firmware 3.16. J2ME does not have interrupt on thread - but I doubt this would have worked anyway as read() usually does not respond to this. As usual the whole thing is fine in an emulator.

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    382

    RE: hanging IO read() on 7650

    Hello

    Try to close you connections in finally section,
    and you could also try to set your thread stopped.

    run()
    {

    try {
    open your connections
    }
    catch(Exception e)
    {
    catch errors
    }
    finally
    {

    Close you connections here, or set the Thread stopped

    }



    }

Posting Permissions

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