Hi
I am using a bit of FTP code to check for a newer version of a program on a server and if there is one available it notifies the user so they can download it. If they choose to do this I use a Shell command to start an Updater program and AppClose to close the current program, like this:
Shell(AppPath & "\Updater.exe",FName & " " & ServerIP)
AppClose
This works fine on the emulator but when I load it onto the mobile device it shows an error: 'Application algastrack.exe encountered a serious error and must shut down.' immediately after the updater program has started.
Anybody got any idea why this happens? Is it because the mobile device registers AppClose as an unscheduled shutdown or something?
Thanks.
I am using a bit of FTP code to check for a newer version of a program on a server and if there is one available it notifies the user so they can download it. If they choose to do this I use a Shell command to start an Updater program and AppClose to close the current program, like this:
Shell(AppPath & "\Updater.exe",FName & " " & ServerIP)
AppClose
This works fine on the emulator but when I load it onto the mobile device it shows an error: 'Application algastrack.exe encountered a serious error and must shut down.' immediately after the updater program has started.
Anybody got any idea why this happens? Is it because the mobile device registers AppClose as an unscheduled shutdown or something?
Thanks.