Hi there,
I've folowing Problem:
Sometimes TTNCF does not return from function calls - especially when started shortly before.
This is what my code does before any other calls:
int cnt = 0;
if (TTN.IsApplicationRunning() != 1)
{
TTN.StartApplication();
Thread.Sleep(3000);
//check for 15sec if its running
while (TTN.IsApplicationRunning() != 1 && cnt < 15)
{
Thread.Sleep(1000);
cnt++;
}
if (cnt > 14) return false;
//wait another 2sec to be sure?
Thread.Sleep(2000);
}
TTN.SetForegroundWindow(form);
return true;
Still it hangs sometimes randomly on other calls.
I use:
GeoCodeExtended
GetInternalVersions
NavigateTo
...
Devices:
DELL Axim v50, HTC Wizard, HTC Magician: it hangs regularly
ASUS MyPal A636, HTC Universal: it happens only sometimes (e.g: after 50x GeoCodeExtended)
HP 6340, HP 6545: if TT is started before our appl - it works, if not it hangs sometimes
Versions:
VS 2003 C#
TTSDK: 5.2.223
TT: 5.2.223
TTNCF: 5.21.0.1
Map: DE_AT_CH_PL_CZ_Plus-Map (571)
Waht am I doing wrong?
by the way: Greetings to Kleinmünchen/Ebelsberg
Harald