Click to See Complete Forum and Search --> : Work on file


I Phil Good
April 16th, 1999, 07:07 AM
My application opens a big file (100 Mo), reads bytes and copy some of them in an another file.When it's running, the display of my window isn't refresh, some buttons diseppear, the task manager says that my application doesn't answer (but in fact, it's working). How can i avoid this thing.
Thank you.

Dave Lorde
April 16th, 1999, 07:22 AM
Fire up a worker thread to do the heavy duty processing.

Dave

I Phil Good
April 16th, 1999, 09:31 AM
can you give me more details ?

Dave Lorde
April 16th, 1999, 09:46 AM
You write a thread function that contains the processing you want to perform in the background. Running this allows your application interface to function normally while the background processing continues. When the thread has finished its task, it can send a notification message to your application before terminating.

For full details, check out 'Multithreading: Creating Worker Threads' in the online docs, and for various examples, see 'Threads/Processes' in the 'Misc' section of this site.

Dave

I Phil Good
April 16th, 1999, 09:54 AM
Thank you very much.