Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Dec 2007

    How to kill the thread.

    hi everyone,

    I have created a application in which i want to do some process
    for eg adding a records to recordstore for this i have created one thread right now it is running ....... but the problem is after the records has been added i want the Thread has to stop his process.

    I searched some code but in that it tells if there is no job to perform means exit... but i want to stop the thread after it finishes his process.........

    so please someone help me out to over come from this.

    Deepu G

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Rome, Italy

    Re: How to kill the thread.

    Hi Deepu,

    in J2me there are not explicit methods to kill threads. To stop a thread running you shound use some local flags to check if the thread must stop or not. Something like that:

    public void run(){
        boolean quit = false;
        while( !quit ){
    	// repeat some action
    	quit = .... // decide if it should quit
    You can find more useful infos here:



Similar Threads

  1. S60 SDK 3rd edition FP1 Emulator problem
    By justteam in forum Symbian Tools & SDKs
    Replies: 14
    Last Post: 2010-03-23, 08:47
  2. console app running problem
    By xcompass in forum Symbian
    Replies: 3
    Last Post: 2009-05-08, 13:26
  3. How to kill a thread?
    By carknue in forum Symbian
    Replies: 6
    Last Post: 2008-03-30, 22:12
  4. Kill Thread Problem
    By westweb in forum Symbian
    Replies: 0
    Last Post: 2007-08-01, 18:55
  5. Link errors when trying to Display bitmap
    By Bkc82 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-01-16, 22:46

Posting Permissions

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