.NET Components for Mobility

Linking to TTSDK6MT.lib

Last post 08-03-2007 6:25 AM by Ralf de Kleine. 24 replies.
Page 2 of 2 (25 items) < Previous 1 2
Sort Posts: Previous Next
  • 05-10-2007 6:58 PM In reply to

    • daveh
    • Top 50 Contributor
    • Joined on 04-20-2007
    • Posts 8

    Re: Linking to TTSDK6MT.lib

    Hi Peter

    Any update on this?  Were you able to recreate it?

    Thanks in advance

    Dave

  • 05-30-2007 10:14 AM In reply to

    Re: Linking to TTSDK6MT.lib

    Hi Folks,

    I have been struggling with the same problem and was wondering if any progress has been made with this?

    From what I can see in my code (listed below) the StartApplication() call does not do anything. Using the process viewer supplied with Visual Studio 2005 when this line of code executes, it would appear that a new process is not created - should this be the case? I would have thought the opposite would occur and a process would be created. Also, if I step through the following code and use the IsApplicationRunning method to determine if TomTom Nav has been opened from code, it consistenly returns false:

    Code:
    If SatNav.IsApplicationRunning.Equals(False) Then
        'Start TomTom Application.
        SatNav.StartApplication()
    End If

    Intermediate Window Output based on the start of the if statement and end of the if statement:
    ?satnav.isapplicationrunning
    False
    ?satnav.isapplicationrunning
    False

    Below is the code I am implementing:

    Public Class frmGPS
        Private SatNav As New InTheHand.TomTom.Navigator
        Private Sub btnTomTom_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTomTom.Click

     Try
            If SatNav.IsApplicationRunning.Equals(False) Then
                'Start TomTom Application.
                SatNav.StartApplication()
            End If
                SatNav.NavigateToAddress("Belfast", "Camden Street", "1", "BT9 6AT")
                SatNav.SwitchToNavigatorView()
                SatNav.TomTomApplicationToForeground()
                Catch TomTomEx As InTheHand.TomTom.TomTomException
                MsgBox(String.Concat(TomTomEx.Error, ": ", TomTomEx.Message))
        Catch ex As Exception
            MsgBox(ex.Message)
        Finally
                Try
                        If SatNav.IsApplicationRunning.Equals(True) Then
                        'Close operation is killed in the finally block.
                        SatNav.StopApplication()
                    End If
                Catch ex As Exception MsgBox(ex.Message)
                End Try
            End Try
        End Sub

    End Class

    Below is the exception generated when running the code:

    TomTomEx                  {"TomTomException"}                                                InTheHand.TomTom.TomTomException
        Error                        NoResponse {-2}                                                       InTheHand.TomTom.TomTomError   
        InnerException         Nothing                                                                     System.Exception   
        Message                 "TomTomException"                                                   String   
        StackTrace              at InTheHand.TomTom.Navigator.CheckResult()            String   
                            at InTheHand.TomTom.Navigator.NavigateToAddress()                       
                            at Dex_GPStest.frmGPS.btnTomTom_Click()                       
                            at System.Windows.Forms.Control.OnClick()                       
                            at System.Windows.Forms.Button.OnClick()                       
                            at System.Windows.Forms.ButtonBase.WnProc()                       
                            at System.Windows.Forms.Control._InternalWnProc()                       
                            at Microsoft.AGL.Forms.EVL.EnterMainLoop()                       
                            at System.Windows.Forms.Application.Run()                       
                            at Dexterra.Framework.Engine.Run()
                            at Dex_GPStest.StartUp.Main()

    I am using Vb.Net 2005, Compact Framework 2 Sp2, TomTom Navigator (According to the ApplicationVersion class) Major Version: 6; Minor Version: 0; Revision -1; Build 7370, TomTom SDK 6.010_7721 and Windows Mobile 5.

    Cheers, all help gratefully and gladly received - thanks in advance!

    Morris

  • 05-31-2007 3:03 PM In reply to

    Re: Linking to TTSDK6MT.lib

    I've been doing some more test work around the navigate to address issues. It appears that what is occuring is a timeout within the wrapper because TomTom doesn't return a result code until it has finished creating the route - for a long journey this can take a considerable time. I'm working on an update which supports a much longer timeout. I will also look into implementing Async versions of the functions.

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 07-19-2007 10:05 AM In reply to

    Re: Linking to TTSDK6MT.lib

    Are there any new developments in the address issues?

    I'm having the same response(NoResponse -2) on more functions:

    - SwitchToNavigatorView

    - ShowAddressOnMap

    - NavigateToPostalCode

    I'm running the SdkVersion 0.6.1.0 and TomTom 6.030 Build 8320.

     

  • 07-19-2007 10:54 AM In reply to

    Re: Linking to TTSDK6MT.lib

    Version 6.2 was released last week and has a number of underlying changes to cure some of these NoResponse timeouts. Please see the announcement for details of how to download the latest version:-

    http://inthehand.com/blogs/announcements/archive/2007/07/13/tomtom-in-the-hand-6-2-released.aspx

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 07-19-2007 11:03 AM In reply to

    Re: Linking to TTSDK6MT.lib

    Hi Peter,

    Thanx for the fast response.

    I've installed the 6.2 version, still get the errors only its takes a few seconds(20?) before i get the NoResponse timeouts.

    Is this a common problem? Or has this got to do something with my programming?

            Try
                Dim a As New TomTom.Navigator
                If Not a.IsApplicationRunning Then
                    a.StartApplication()
                End If
                a.SwitchToNavigatorView()
                ' a.ShowAddressOnMap("Zwolle", "Papaverstraat", "13", "8012")
                a.NavigateToPostalCode("NL", "8012EA", "13")

            Catch ex As InTheHand.TomTom.TomTomException
                MessageBox.Show(String.Format("{0} : {1}", ex.Message, ex.Error.ToString))
            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
     

  • 07-21-2007 6:07 AM In reply to

    Re: Linking to TTSDK6MT.lib

    Which command raises the exception - is it SwitchToNavigatorView or NavigateToPostcode. Can you describe what happens in the TomTom application during this time.

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 08-02-2007 8:04 AM In reply to

    Re: Linking to TTSDK6MT.lib

    The following happends:

    Test 1: TomTom not running:

    Dim a As New TomTom.Navigator         : Initialize
    If Not a.IsApplicationRunning Then        : IsApplicationRunning = False
        a.StartApplication()                          : TomTom starts on top, takes a fraction of a sec to continue
    End If
    a.SwitchToNavigatorView()                    : TomTom has started in navigator view so nothing(visibly) happends.(see included image)
    a.ShowAddressOnMap("Zwolle", "Papaverstraat", "13", "8012")       : After 28 seconds i get the TomTomException 'NoResponse'


    Test 2: TomTom running in the background:

    Dim a As New TomTom.Navigator         : Initialize
    If Not a.IsApplicationRunning Then        : IsApplicationRunning = True
        a.StartApplication()                          : Skips
    End If
    a.SwitchToNavigatorView()                    : TomTom is running in the background, so there is nothing to see.
    a.ShowAddressOnMap("Zwolle", "Papaverstraat", "13", "8012")       : After 28 seconds i get the TomTomException 'NoResponse'

    I also tried it with active and inactive GPS(its a tomtom bluetooth device).

     TomTom after SwitchToNavigator

  • 08-02-2007 4:10 PM In reply to

    Re: Linking to TTSDK6MT.lib

    I don't think you can use ShowAddressOnMap after SwitchToNavigatorView. However have you tried Geocoding first, and then calling ShowCoordinatesOnMap?

     Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 08-03-2007 6:25 AM In reply to

    Re: Linking to TTSDK6MT.lib

    Peter,

    I've tried the following:

                Dim a As New TomTom.Navigator
                If Not a.IsApplicationRunning Then
                    a.StartApplication()
                End If
                Dim b As TomTom.GeocodeInfo
                b = a.Geocode("Zwolle")

    Which resulted in the following exception:
    {"TomTomException"}
        Error: MethodFailed {-5}
        InnerException: Nothing
        Message: "TomTomException"
        StackTrace: "bij InTheHand.TomTom.Navigator.CheckResult()
    bij InTheHand.TomTom.Navigator.Geocode()
    bij InTheHand.TomTom.Navigator.Geocode()
    bij Krijco.UI.KansCE.Test.Button2_Click()
    bij System.Windows.Forms.Control.OnClick()
    bij System.Windows.Forms.Button.OnClick()
    bij System.Windows.Forms.ButtonBase.WnProc()
    bij System.Windows.Forms.Control._InternalWnProc()
    bij Microsoft.AGL.Forms.EVL.EnterMainLoop()
    bij System.Windows.Forms.Application.Run()
    bij Krijco.UI.KansCE.Home.Main()
     

                Dim a As New TomTom.Navigator
                If Not a.IsApplicationRunning Then
                    a.StartApplication()
                End If
                Dim b As TomTom.GeocodeInfo
                b = a.GeocodeByPostalCode("NL", "8012EA", "13")

    Which resulted in the following exception:
    {"TomTomException"}
        Error: -8
        InnerException: Nothing
        Message: "TomTomException"
        StackTrace: "bij InTheHand.TomTom.Navigator.CheckResult()
    bij InTheHand.TomTom.Navigator.GeocodeByPostalCode()
    bij Krijco.UI.KansCE.Test.Button2_Click()
    bij System.Windows.Forms.Control.OnClick()
    bij System.Windows.Forms.Button.OnClick()
    bij System.Windows.Forms.ButtonBase.WnProc()
    bij System.Windows.Forms.Control._InternalWnProc()
    bij Microsoft.AGL.Forms.EVL.EnterMainLoop()
    bij System.Windows.Forms.Application.Run()
    bij Krijco.UI.KansCE.Home.Main() 

    The interresting thing is when TomTom is running before i start my application then i get a NoResponse(-2) error.

    ----

    Maybe its a bit far fetched but could globalization have anything to do with it? I'm running dutch versions of CE and TomTom...

     

Page 2 of 2 (25 items) < Previous 1 2
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.