Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User wijaya88's Avatar
    Join Date
    Sep 2009
    Posts
    1
    help me...


    Warning: To avoid potential deadlock, operations that may block, such as
    networking, should be performed in a different thread than the
    commandAction() handler.

  2. #2
    Super Contributor ingsaurabh's Avatar
    Join Date
    Apr 2009
    Posts
    572
    perform the networking action in separate thread rather than in command listener for this create a new thread and start it and paste your code in it for accessing network resource and in command action handler start this thread
    Regards,
    Saurabh

  3. #3
    Nokia Developer Champion im2amit's Avatar
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    2,903
    Quote Originally Posted by wijaya88 View Post
    help me...


    Warning: To avoid potential deadlock, operations that may block, such as
    networking, should be performed in a different thread than the
    commandAction() handler.
    This means that you are trying to do any blocking operation like access to RMS, PIM or network call from main CommandAction() handler methods which are blocking the midlets main thread.

    Solution - what ever process you want to do from Command action that can be considered as blocking operation (like calling RMS data, reading files, PIM, or HTTP based network calls etc) should be writen in a seperate Thread and this thread should be just started from your CommandAction() handler method to get the operation done.


    thanks,
    ~Amitabh
    Follow me on my blog for Innovative Mobile Apps

Similar Threads

  1. cannot create .sis file....
    By jebindaniel in forum Themes/Carbide.ui
    Replies: 6
    Last Post: 2010-04-28, 03:22
  2. How to create a sis using ensymble and Python 1.9.4 ?
    By marcelobarrosalmeida in forum Python
    Replies: 10
    Last Post: 2009-05-27, 10:16
  3. linking error
    By dakosurf in forum Symbian C++
    Replies: 1
    Last Post: 2008-03-27, 22:45
  4. linking error
    By dakosurf in forum Open C/C++
    Replies: 0
    Last Post: 2008-03-27, 09:20
  5. C-code..unable to make sis
    By Symbian_Neil in forum Symbian C++
    Replies: 9
    Last Post: 2006-12-02, 07:55

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