Mobile Development: SetDestination Problem when I use any text File
1 to 2 of 2
-
- CommentAuthornixbure
- CommentTimeAug 4th 2011
Hi.
I have a problem with the SetDestination Function on the SDK. When I open any text file, including XML. I always get a NotSupportedException. I've made some test on it and when I use Coordinates on Hard Code there isn't any problem, when I try to use one set of coordinates that I get from an XML file the error occurs. I'll Attach the StackTrace and the CODE that I use.
STACK TRACE:
at Telogis.GeoBase.Routing.xefd340e0a12b4309.Consume()
at Telogis.GeoBase.Routing.x8844b500a3e07bd1.x9011074fec9258d6()
at Telogis.GeoBase.Routing.x8844b500a3e07bd1.x0f898695daa438af()
at Telogis.GeoBase.Navigation.x8618db28097cebc5.x0f898695daa438af()
at Telogis.GeoBase.Navigation.Navigator.xb55f732a947dddd5()
at Telogis.GeoBase.Navigation.Navigator.RecalculateRoute()
at Telogis.GeoBase.Navigation.Navigator.set_Destination()
at Telogis.GeoBase.Navigation.NavigationManager.SetDestination()
at GeobaseNavVB.Form1.StartRoute()
at GeobaseNavVB.Form1.btnRuteo_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 GeobaseNavVB.Form1.Main()
CODE:
'//Set destination
Lat= CDbl(GetXMLDato("\NAND Flash\AppSwitch.xml", "App/Lat") )
Long= CDbl( GetXMLDato("\NAND Flash\AppSwitch.xml", "App/Long"))
'The GetXMLDato is a personal Function that gets a string from the Path (second argument) on the XML File (First Argument), it gets the Lat and Long Fine
Dim Localization As LatLon = New LatLon(Lat, Long)
'It worked fine here
If Localization.IsValid Then
nMan.SetDestination(Localization)
'Here I have the problem, never get past from SetDestination and an Exception Results
Else
MsgBox("Error en Dato")
End If
REGARDS
Mario Alvarez -
- CommentAuthorSharonD
- CommentTimeAug 5th 2011
Hi Mario,
Since we have received the same issue in our supporting system, we will deal with it through a support case. Once it's resolved we will post the solution back to the forum.
Kind regards,
Sharon
1 to 2 of 2
