I have ensured to limit the number of upload (threads?) not to exceed 20 as I read in some post. I reduce the thread counter when there is a successful upload or a failure in upload.
An important issue (or some mistake I have made
) I have noticed is that the function which inserts the new file names with the status as "WAITING" does not get listed when another function (upload function) does a.. I have a doubt if the inserts are getting committed or not to the DB. I tried the begin transaction and end transaction method also to no luck. Sometimes the inserts shows up in in the query of upload function after 5 or 6 minutes.One feature of the app is to upload a old file and the latest captured image file alternatively..
Cursor1 = SQL1.ExecQuery2("SELECT * FROM FilesToSend WHERE status = ?", Array As String("WAITING"))
Erel, I am posting the project here.. I request you to kindly go through it and guide me please..
View attachment CamService.zip