Select to view content in your preferred language

Do I need to put a hard-coded delay between LoadStops and Navigate actions?

981
0
12-03-2013 06:22 AM
SergeyDanielyan
New Contributor
Hi all.

I'm trying to implement a correct flow and I'm using ALN Remote API for that.

First let me post here what's my flow:

1. Create ALNRemote COM object
2. Get references to ALNRemote().Route, ALNRemote().Stops, ALNRemote().Accessibility and ALNRemote().Route.RouterSettings
3. Set callbacks for OnStart and OnLoadComplete events
3. Call Start method
4. When OnStart callback is triggered on, I configure Accessibility settings (SetMapAllowed, SetStopsAllowed, SetSettingsAllowed) and load stops from memory string (or from xml file in grf format)
5. When OnLoadComplete callback is triggered on, I set a callback for OnStartNavigation and call Navigate method.

If I do not have a delay being set prior to Navigate method invocation, I get the following error:

Can't solve a route:
[ATTACH=CONFIG]29528[/ATTACH]

So, what's happening and how I can work around this?

Thanks!

Regards, Sergey.
0 Kudos
0 Replies