×

Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    1

    Warning: To avoid potential deadlock

    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
    Join Date
    Apr 2009
    Posts
    572

    Re: Warning: To avoid potential deadlock

    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
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: Warning: To avoid potential deadlock

    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. How to create a sis using ensymble and Python 1.9.4 ?
    By marcelobarrosalmeida in forum Symbian
    Replies: 10
    Last Post: 2009-05-27, 10:16
  2. linking error
    By dakosurf in forum Symbian
    Replies: 1
    Last Post: 2008-03-27, 22:45
  3. linking error
    By dakosurf in forum Open C/C++
    Replies: 0
    Last Post: 2008-03-27, 09:20
  4. C-code..unable to make sis
    By Symbian_Neil in forum Symbian
    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
  •  
×