In some database init must be done first of all, other operations are not allowed - so, the process can be done as is in the main thread, with some progressbar.
Init is a process with a huge text file (20000 ... 100000 lines, several megabytes, or tens of), reading line by line.
I usually make using Doevents in some IF condition. But here is very long operation, maybe 5 minutes. And an user may need to interrupt it, seeing the progressbar percent.
How correct to do such loop with minimal delay ?
Init is a process with a huge text file (20000 ... 100000 lines, several megabytes, or tens of), reading line by line.
I usually make using Doevents in some IF condition. But here is very long operation, maybe 5 minutes. And an user may need to interrupt it, seeing the progressbar percent.
How correct to do such loop with minimal delay ?