Re: "Not Responding" when reading and processing large file
From: Vladimir Scherbina (vladimir_ns_at_ukr.net)
Date: 02/06/04
- Next message: Martin Dew: "Re: "Not Responding" when reading and processing large file"
- Previous message: Jimbo: "Best format for configuration file?"
- In reply to: Jimbo: ""Not Responding" when reading and processing large file"
- Next in thread: Martin Dew: "Re: "Not Responding" when reading and processing large file"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 6 Feb 2004 15:37:03 +0200
it hungs because the window proc of your appl does not process messages sent
to it.
to fix that create thread which will be reading your large file and make
needed actions.
I advice you to read Richter's "advanced windows" and you will understand
what is "threads"..
--
Vladimir Scherbina,
Ukraine, Kiev.
"Jimbo" <None> wrote in message
news:uAx$DTL7DHA.2812@TK2MSFTNGP11.phx.gbl...
> I'm working on a win app that reads and processes each line of an ascii
file
> until the end of the file. Since the file's 1.6 million lines long, after
a
> while Windows displays the "Not Responding" although the application's
> running fine. Is it possible to add anything that'll stop Windows from
> displaying that?
>
> Also, how would I be able to always have control of the form in case I
want
> to abort the process? Once it starts running, I lose control of the form.
> I've heard of being able to use threads but I really didn't understand
them.
>
> Thank you.
>
>
- Next message: Martin Dew: "Re: "Not Responding" when reading and processing large file"
- Previous message: Jimbo: "Best format for configuration file?"
- In reply to: Jimbo: ""Not Responding" when reading and processing large file"
- Next in thread: Martin Dew: "Re: "Not Responding" when reading and processing large file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|