This is being called in a thread, and there is nothing that terminates a thread - but the thread is completing before the download is complete.
Is there an alternative to download a file?
Also; I tried using this to validate the image:
Code: Select all
Procedure IsValidImage( cFile.s )
Protected bValid.b = #False;
Protected nImage = LoadImage(#PB_Any, cFile)
If IsImage(nImage)
bValid = #True
FreeImage(nImage)
EndIf
ProcedureReturn bValid
EndProcedure
Any ideas?