Multithreading in .NET CF
- From: José Manuel Nieto <jmn@xxxxxxxxxxxx>
- Date: Thu, 06 Jul 2006 13:20:12 +0200
Hello. I'm writing an implementation for something like the BackgroundWorker class for the .NET CF that works with an input queue.
I'm not very fluent in multithreading, but I'm doing tests and it appears to work.
The problem comes when I want to stop the multithread operation. It's for this that I need an expert to take me a hand with this. I will pay you if it is necessary, but I need a qualified person here.
I don't know people with the information I need, because either don't use .NET or because they have not learnt any multithreading basics. I need your help!
MORE INFO:
I've written a class in C# that processes a queue of items in a separate thread. When a single item is processed, it raises an event (ItemProcessed) with the result of the processing as an argument.
I use this event that is intercepted in the main thread to know when an item is processed and the result of the operation.
The class also uses an event to notify the end of the processing.
With all of this been said, I hope that one of you will be ready to help me.
SPECIFICATIONS:
- I want a class that is able to process an input queue to generate an otput queue doing all the required operations in a separate thread.
- the processing is needed to be cancellable asynchronously.
- when each item in the queue is processed, it has to raise an event to notify the processing of the item and the result of it to the main thread (using a Control.Invoke)
- the main thread will control the execution, using this class, being able to start and stop the processing.
WHY I WANT THIS?
It's because I'm doing a custom control that loads images in background when a path is specified. When the control is loading a path and you specify another path, the control should be able to cancel the background processing and restart it with the new path.
Please, help me. I'm also available through MSN Messenger at jmn<-at->superjmn.com
Answer this message if you have the knowledge to abord this problem.
Thank you a lot.
.
- Follow-Ups:
- RE: Multithreading in .NET CF
- From: Alex Yakhnin [MVP]
- RE: Multithreading in .NET CF
- Prev by Date: file access error on SQLCE database file after closing connection
- Next by Date: Switch aplha <-> numeric
- Previous by thread: file access error on SQLCE database file after closing connection
- Next by thread: RE: Multithreading in .NET CF
- Index(es):
Relevant Pages
|