×

Discussion Board

Page 2 of 2 FirstFirst 12
Results 16 to 27 of 27
  1. #16
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Camera Snap on start app.

    SDK docs do say for this panic that: "This panic is raised when a timer event is requested from an asynchronous timer service, an RTimer, and a timer event is already outstanding. It is caused by calling either the At(), After() or Lock() member functions after a previous call to any of these functions, but before the timer event requested by those functions has completed. "

    So do see that you never activate it twice, or simply cancel previous request when making new one. i.e. in your CamExTimer implementation, inside the At/After/Inactivity, add Cancel(); line in the beginning of the function.

  2. #17
    Registered User
    Join Date
    Mar 2012
    Posts
    26

    Re: Camera Snap on start app.

    But it has a cancel function.
    This is After Function.
    Code:
    void CamExTimer::After(TTimeIntervalMicroSeconds32 aInterval)
    		{	
    		Cancel();
    		iInterval = aInterval;
    		iTimer.After(iStatus,aInterval);
    		SetActive();
    		}

  3. #18
    Registered User
    Join Date
    Mar 2012
    Posts
    26

    Re: Camera Snap on start app.

    Excuse me. KERN-EXEC 15 it gives me when I'm using Inactive function.
    Code:
    void CamExTimer::Inactivity(TTimeIntervalSeconds aSeconds)
            {	
    	Cancel();
        iTimer.Inactivity(iStatus,aSeconds);
        SetActive();
             }
    When using After() it gives me KERN-EXEC 3

  4. #19
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,025

    Re: Camera Snap on start app.

    Cancel() calls DoCancel(), is that implemented already?

  5. #20
    Registered User
    Join Date
    Mar 2012
    Posts
    26

    Re: Camera Snap on start app.

    This is DoCancel :
    Code:
    void CamExTimer::DoCancel()
    	{	
    		iTimer.Cancel();
    	}

  6. #21
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,025

    Re: Camera Snap on start app.

    Can you paste the complete code as at what instances you are calling Inactivity() & After(). Might be an issue of two async requests at same time or something like that.

  7. #22
    Registered User
    Join Date
    Mar 2012
    Posts
    26

    Re: Camera Snap on start app.

    Yes, this is the whole project ftp://fukatoki.dyndns.org/S60_Camera_Example.rar

  8. #23
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Camera Snap on start app.

    I would suggest now finding the last line executed. The panic KERN-EXEC 3 indicates that you are using invalid pointer.

    and forgetting to implement DoCancel() would not cause this panic. In that case the default empty implementation would be called.

  9. #24
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,688

    Re: Camera Snap on start app.

    Ah, it is your RunL. TimerExpired re-schedules the timer correctly, however after that RunL re-schedules it without any Cancel attempt.
    (Side note: this passing void* and casting it to CamExTimer is not safe, in fact I do not see the need for passing the timer object around, for normal use cases it is owned by the called object anyway. And the complicated, extremist use cases are just not needed here)

  10. #25
    Registered User
    Join Date
    Mar 2012
    Posts
    26

    Re: Camera Snap on start app.

    Is there some way to track whole execution proccess, without emulator, but on real device or directly in Carbide?. I Want to now what steps passing
    through my program?

  11. #26
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    Re: Camera Snap on start app.

    You can use On Device Debugging.
    This could be a starting point, but I don't know how up to date it is:
    http://www.developer.nokia.com/Commu...ng_Quick_Start
    For Symbian3 devices:
    http://www.developer.nokia.com/Commu...for_Symbian_OS

    there were also some videos on youtube... feel free to search "symbian on device debugging" with your preferred search engine (or search facility here on the forum) :-)

    regards
    pg

  12. #27
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Camera Snap on start app.

    ODD with Symbian has been always a bit tricky at best, anyway, I would suggest using file logging, its easy to use and often enough good for finding where the crashes are coming from.

Similar Threads

  1. I want to take snap from mobile camera and sent this image to server
    By sumeshchakra in forum Mobile Java General
    Replies: 2
    Last Post: 2010-03-27, 06:29
  2. Defect to take snap using native camera
    By ashuglaitm in forum Mobile Java Games
    Replies: 1
    Last Post: 2009-10-09, 19:37
  3. N73 camera can't start
    By nemotse in forum General Development Questions
    Replies: 1
    Last Post: 2006-08-31, 15:51
  4. format of bmp after camera snap?
    By stephen_b_g in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2005-08-22, 06:47
  5. image/vnd-nok-camera-snap
    By Brainstorm2003 in forum Streaming and Video
    Replies: 0
    Last Post: 2005-08-12, 12:19

Posting Permissions

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