×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    28

    Stray Signal on S60 3rd Edition when 2nd Edition worked

    I am trying to port my app from S60 2nd Edition to the 3rd Edition SDK (using Carbide.vs C++).

    And I am getting the dreaded "Stray Signal" panic in Active Scheduler code that used to work fine.

    The setup is typical (using CImageDecoder):

    CActiveScheduler::Add(This);

    ...

    SetActive();
    iImageDecoder->Convert(&iStatus,iBitmap);

    ***
    No problem whatsoever on 2nd edition. But my RunL() method is not being called at all in the 3rd Edition (probably generating the panic).

    Any ideas?

    Mike

  2. #2
    Registered User
    Join Date
    May 2005
    Location
    Indonesia
    Posts
    198

    Re: Stray Signal on S60 3rd Edition when 2nd Edition worked

    Hi proxima1,
    I think you should call SetActive() after calling the asynchronous function. So flip the sequence of your code into this:

    iImageDecoder->Convert(&iStatus,iBitmap);
    SetActive();

    hope this helps
    Ronald Stevanus

  3. #3
    Nokia Developer Champion
    Join Date
    Jul 2004
    Posts
    2,015

    Re: Stray Signal on S60 3rd Edition when 2nd Edition worked

    Flipping the order shouldn't make any difference (let me know if it does as I will be very surprised).

    Is having the & there correct?

  4. #4
    Super Contributor
    Join Date
    Nov 2005
    Location
    London
    Posts
    584

    Re: Stray Signal on S60 3rd Edition when 2nd Edition worked

    Quick check, and I think the &iStatus is fine since CImageDecoder::Convert() takes a TRequestStatus* (http://www.symbian.com/developer/tec...aConvert%28%29)

    As with all stray signal panics, it's a question of finding out *which* active object is associated with the event which is completing and causing the stray signal. Have you eliminated all other active objects in your code as being blameless, because this code certainly looks OK?

Similar Threads

  1. SyncML API and S60 3rd edition?
    By harri_salminen in forum Symbian Tools & SDKs
    Replies: 4
    Last Post: 2008-03-20, 14:50
  2. S60 2nd OR 3rd edition for new software development
    By patil_ruturaj in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-06-30, 09:30
  3. S60 2nd OR 3rd edition for new software development
    By patil_ruturaj in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2006-06-30, 08:57
  4. What is going on with Vibration on S60?
    By amd_rikus in forum Mobile Java General
    Replies: 3
    Last Post: 2006-06-16, 00:29

Posting Permissions

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