×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Camera view finder crash but only in 5800

    Does anyone know why camera view finder start crashes in 5800? Both 1.4.5 and 1.9.5... I don't think I'm doing anything weird, same code works as-is in E61i and N82 without problems:

    Code:
    def cb_init(im):
        aa, bb = im.size
        camera.stop_finder()
        camera.start_finder(cb_view, size=(aa, bb))
    This is all output I could catch in log file:

    === LINE e:\Python\kameramation.py cb_init@68: camera.start_finder(cb_view, size=(aa, bb))
    === CALL c:\resource\camera.py start_finder@102: def start_finder(call_back, backlight_on=1, size=_main_pane_size()):
    === LINE c:\resource\camera.py start_finder@102: def start_finder(call_back, backlight_on=1, size=_main_pane_size()):
    === LINE c:\resource\camera.py start_finder@103: global _my_camera
    === LINE c:\resource\camera.py start_finder@104: if _my_camera.finder_on():
    === LINE c:\resource\camera.py start_finder@106: global _my_call_back
    === LINE c:\resource\camera.py start_finder@107: global _backlight_on
    === LINE c:\resource\camera.py start_finder@108: if not callable(call_back):
    === LINE c:\resource\camera.py start_finder@110: _my_call_back=cal
    Wondering,

    --jouni

  2. #2
    Regular Contributor
    Join Date
    Sep 2005
    Location
    Finland, Helsinki
    Posts
    323

    Re: Camera view finder crash but only in 5800

    Quote Originally Posted by JOM View Post
    Does anyone know why camera view finder start crashes in 5800? Both 1.4.5 and 1.9.5... I don't think I'm doing anything weird, same code works as-is in E61i and N82 without problems:

    Code:
    def cb_init(im):
        aa, bb = im.size
        camera.stop_finder()
        camera.start_finder(cb_view, size=(aa, bb))
    What is the size of this im in 5800?
    --
    Aapo Rista
    http://code.google.com/p/pys60gps/
    http://opennetmap.org/

  3. #3
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: Camera view finder crash but only in 5800

    Quote Originally Posted by aaaaapo View Post
    What is the size of this im in 5800?
    Thanx Aapo, right question !!!

    Actually "im" is parameter to callback, but as there's a bug (feature?) I had to do something to get around it. That code works in other devices but not in 5800. Simplified the code and now this app works there, too. Looks horrible, but works.

    Thanx,

    --jouni

Similar Threads

  1. Nokia 5800 - Camera Snapshot
    By tcglam in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2009-09-18, 11:39
  2. MMAPI and live camera view
    By nagkumar in forum Mobile Java General
    Replies: 3
    Last Post: 2008-12-15, 17:10
  3. Trigger event after view is Activated?
    By inc0gn1t007 in forum Symbian
    Replies: 0
    Last Post: 2006-03-29, 02:55
  4. Replies: 1
    Last Post: 2005-10-17, 04:23
  5. Camera Crash - KErrPathNotFound (Please)
    By psousa in forum Symbian
    Replies: 0
    Last Post: 2003-09-03, 01:26

Posting Permissions

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