I just wonder about a thing. I'm making a program which must be able to do several things at SAME time. Which means, one thing is the Application.ProcessMessages. For the application to not hang when doing some operations (like sending email). Lets say if I want to copy a 4 files on 200 megabyte in the app, and want the application to behave normally (like Outlook, Winzip, etc... when they do something which takes time) while copying. That means that I have to do these loops at SAME time:
//***For updating app:***
//***And this for the copying itself for example ***
For file := 0 to 4 do
newfilename := 'C:\file'+inttostr(file)+'_new.zip';
If FileExists(filename) Then
Since the last one will take about 20 seconds, then the application can't seems like it has crashed in the meantime, and if I run ProcessMessages every loop, then it only will react every 5th second, so therefore the other loop that does the ProcessMessages be done at the same time as the loop. How can that be done? I've tried with timers (but they need ProcessMessages to respond), and I've tried with a seperate loop (but then it's stuck in the loop, and won't go to the filecopying). How would I get this work then?