Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User nstamps's Avatar
    Join Date
    Mar 2003
    Posts
    41
    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 jalev's Avatar
    Join Date
    Mar 2003
    Posts
    382
    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
  •  
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