×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Jul 2012
    Posts
    82

    Retriving the latitude & longitiude of the current position

    I was following the example to retrive the location from the link :-
    http://www.developer.nokia.com/info/...n_Example.html

    But in this link when user put the command to retrieve the location it calls the function

    void CLocationExampleEngine::ActivateGpsL().

    After that in side this function

    we are initializing the pointer of CLocationExamplePositionRequestor.

    if (!iPositionRequestor)
    {
    iPositionRequestor = CLocationExamplePositionRequestor::NewL(KUpdateInterval,*this);
    SetEngineState(EScanningGps);
    }

    but here in this function when i am debugging i am getting error on the line

    if (!iPositionRequestor)

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Retriving the latitude & longitiude of the current position

    if you get errors, you should actually descripe the error in details, best would be if you can write the panic note shown when it crashes.

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,673

    Re: Retriving the latitude & longitiude of the current position

    If you get KERN-EXEC 3 when accessing an innocent member variable, it may indicate that the object itself (CLocationExampleEngine) does not exist. It is possible to invoke any non-virtual methods on a null/invalid pointer, because the method bodies are present all the time. The leave/exception arises when member variables are getting accessed.
    But of course I still strongly disagree with your habit of not showing the error codes.

Similar Threads

  1. Retriving latitude & longitiude.
    By akki123 in forum Symbian
    Replies: 7
    Last Post: 2012-12-13, 08:55
  2. Replies: 3
    Last Post: 2012-11-22, 12:42
  3. Open google map site with current Longitude and Latitude
    By videoFx in forum [Archived] Flash Lite on Nokia Devices
    Replies: 3
    Last Post: 2009-04-06, 18:11
  4. problem in retriving single general number of position 2
    By divya_v in forum Mobile Java General
    Replies: 10
    Last Post: 2009-01-03, 01:52

Posting Permissions

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