I've written a routine which dowloads files via the FTP library. In order to preserve the ability to update a progress bar during the download, I use the threading library to create a thread which actually downloads the file.
All of this works just fine if compiled for the desktop (optimization is on). However, it fails on the device. I'm getting an error message that an optional resource assembly was not found.
The code for the thread itself is just this simple:
I've double-checked, and yes, I've got FTPDevice.DLL installed on the device.
The desktop is running Windows XP Pro; the Basic4PPC version is 6.05; the device is an HTC 8925/AT&T Tilt running Windows Mobile 6.
I've beaten my head against a wall too many times already this week; anyone have any ideas, especially why this works on the desktop, but not the device?
Gary
:sign0085:
All of this works just fine if compiled for the desktop (optimization is on). However, it fails on the device. I'm getting an error message that an optional resource assembly was not found.
The code for the thread itself is just this simple:
B4X:
Sub threadSyncFile_ThreadCode
ErrorLabel( threadSyncFile_ThreadCodeError )
ftpSyncFile.GetFile( labelSyncFileSource.Text, labelSyncFileTarget.Text )
syncSetLastDownload( labelSyncFileSource.Text )
threadSyncFile_ThreadCodeError:
labelSyncFileTarget.Text = ""
labelSyncFileTarget.Refresh
Return
End Sub
I've double-checked, and yes, I've got FTPDevice.DLL installed on the device.
The desktop is running Windows XP Pro; the Basic4PPC version is 6.05; the device is an HTC 8925/AT&T Tilt running Windows Mobile 6.
I've beaten my head against a wall too many times already this week; anyone have any ideas, especially why this works on the desktop, but not the device?
Gary
:sign0085: