Answer the question
In order to leave comments, you need to log in
How can I prevent the WinForms form from freezing when opening a file larger than 2MB?
The task is to read asynchronously a text file, but when it is opened, the form freezes for a while and nothing can be done. I tried to do it in a separate thread, but it still does not help. Help make it so that when you open a file, you can continue interacting with the form.
Answer the question
In order to leave comments, you need to log in
What's not clear.
Look, I took
HDD from speed tests 94 times slower (0.68 MB / s versus 63.6 MB / s), compared to SSD
. If we assume that you have Hdd, then reading the file is a little more than 2 seconds.
What do you do with the data next? Perhaps this is the issue? But not on disk?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question