nico_callewaert wrote:
>
>
> Hi,
>
> I'm reading a huge text file into a dataset. Is there a way to force
> the operating system to process the message queue from time to time
> during that operation, so the end-user will not have the impresiion
> that windows hangs...
>
> Thanks in advance,
>
> Nico Callewaert
int LineCount = 0;
while (true)
{
if (EndOfTheHugeTextFile())
return;
ProcessNextTextLine();
LineCount ++;
if ((LineCount % 100) == 0)
Application.DoEvents();
}
--
Regards
Theo
------------------------
Theo Bebekis
Thessaloniki, Greece
------------------------
Greek_Delphi_Prog : a Delphi Programming mailing list in Greek at
http://groups.yahoo.com/group/Greek_Delphi_Prog
atla_custom : a Unisoft Atlantis Customization mailing list at
http://groups.yahoo.com/group/atla_custom
------------------------
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/CSharpNET/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
