Hello,
Before coming here for help i spent much time with many experiences, but with no success.
My code is : (shorted) :
In this exemple, sleep(0) allows any events to be executed.
But the hand never come back to the do-while loop and the next "Loadbitmap" is never executed.
I inspected in my app the only one sub event that could disturb (GPS), and i see nothing explaining the problem.
Maybe i have bad understood somewhat.
Thank you for your help.
Before coming here for help i spent much time with many experiences, but with no success.
My code is : (shorted) :
B4X:
Dim sf As Object = FTP.DownloadFile(DirectoryServeur & Lig, True, File.DirRootExternal, DirectoryLocalePhotos & Lig)
Wait For (sf) FTP_DownloadCompleted (ServerPath As String, Success As Boolean)
do while Success = false
sleep(0)
loop
ImagePhoto.Bitmap = LoadBitmap(File.DirRootExternal,DirectoryLocalePhotos & Lig)
In this exemple, sleep(0) allows any events to be executed.
But the hand never come back to the do-while loop and the next "Loadbitmap" is never executed.
I inspected in my app the only one sub event that could disturb (GPS), and i see nothing explaining the problem.
Maybe i have bad understood somewhat.
Thank you for your help.