×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    17

    How to use CSatteliteInfoUI correctly

    Hi @ll,

    I am programming a small GPS application for my Nokia N95, and I'm kind of stuck by a problem, which seems to me real strange. I am using CSatelliteInfoUI class to display this standard dialogbox, which shows the available GPS Satellites to the user, and when he got a lock from the satellites. If find this quite usefull and I have implemented it, like it wsa descirbed in the documentation:

    Code:
    CSatelliteInfoUI* mySatelliteInfo = CSatelliteInfoUI::NewL();
    mySatelliteInfo->ExecuteLD(_L("mygpsserver"));
    mySatelliteInfo = NULL;
    It works, that it displays the info box, with a "Back" Button. If I press it, sometimes (not always) the hole application crashes, but on the emulator it's working fine. So I have no glue how to find out what's the problem. I'm using a thread and a timer as well, could this be a problem? i'm executing this code in from the UI class, and get the postions via gps from a thread.

    I hope someone can help me I really have no glue how to solve that... thanks a lot in anticipation,... and of course... merry x-mas!!

    matt

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: How to use CSatteliteInfoUI correctly

    Hello,

    after reading about your problem I think the piece of code you have provided us does not give us enough information to help you. You said that it sometimes crashes and sometimes not - it looks like you have problem with the thread you mentioned. I guess it has nothing to dot with the displayed dialog. Try to add some file logs into your code to detect the exact place it crashes and double check that you are using the thread safely.

    BR
    STeN

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    17

    Re: How to use CSatteliteInfoUI correctly

    Hi,

    thanks for your reply, and yes you're right. The problem had nothing to do with the Dialogbox API, it had to do with the thread. I didn't pop some object from the cleanup stack in my error handler and after a context switch this error was thrown when a error occured, otherwise it worked.

    Cheers,

    matt

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: How to use CSatteliteInfoUI correctly

    Hi,

    so problem solved?

    BR
    STeN

Similar Threads

  1. GUI getting displayed correctly on emulator but not on to device
    By rohanwaugh in forum Symbian User Interface
    Replies: 0
    Last Post: 2008-11-27, 11:12
  2. column list box not shown correctly in landscape mode.
    By praveena_R in forum Symbian User Interface
    Replies: 3
    Last Post: 2007-12-14, 10:14
  3. Smile File not shown correctly in MMS Presentation
    By jensbardel in forum General Messaging
    Replies: 0
    Last Post: 2006-01-18, 13:49
  4. Custom item not displayed correctly
    By kakoskin in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2004-10-11, 21:50
  5. Replies: 18
    Last Post: 2004-01-11, 16:56

Posting Permissions

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