×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    285

    Trouble using laa module - laa.execute() appears to open new thread

    Hi!

    I'm having a bit of problem with the laa.execute function. The function appears to execute the application in a new thread.

    For instance, in the below script, the intended functioning is that I call an application (uid1) and it verifies identity. If authentication is successful, the application writes "1" to a file (say c:\\auth.txt), and if not, it writes "0".
    (the function readfile reads contents of a file - to reduce verbosity)
    Code:
    laa.execute(uid1)
    txt = readfile(u"c:\\results.txt")
    if (txt == u"1"):
    	laa.execute(uid2)
    else:
    	appuifw.note(u"Failed")
    But the problem on running the code is, the script doesn't wait for laa.execute(uid1) to finish. It continues to read from the file, and performs actions based on the present contents of the file. Is there any way to ensure that laa.execute() does not start off a new thread?

    I am aware that there are some workarounds - maybe delete the file beforehand (so that file exists only when uid1 is done), and put a try-except in an infinite while loop, but I was hoping for something more elegant.

    Is there documentation available for laa extension somewhere?
    Thanks

  2. #2
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    285

    Re: Trouble using laa module - laa.execute() appears to open new thread

    Hey,

    Is there some documentation available on the laa module somewhere?
    Please?

    Thanks
    Kedar

Similar Threads

  1. [moved] Cannot run the S60 5th ed Emulator (tagma.dll assertion)
    By Carbider in forum Symbian Tools & SDKs
    Replies: 20
    Last Post: 2010-06-07, 17:21
  2. [moved] can not install application in emulator
    By HAHAPrince in forum Symbian Tools & SDKs
    Replies: 26
    Last Post: 2009-04-02, 20:34
  3. Replies: 16
    Last Post: 2007-09-11, 10:05
  4. Open File in other thread
    By TrungThanhMtad in forum Symbian
    Replies: 1
    Last Post: 2005-10-13, 03:14

Posting Permissions

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