RE: Multithreading in .NET CF

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



OpenNETCF Consulting should be able to help you:

dcs(at)opennetcf.com

--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com | www.opennetcf.org


"José Manuel Nieto" wrote:

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.

.



Relevant Pages

  • Multithreading in .NET CF
    ... I'm writing an implementation for something like the BackgroundWorker class for the .NET CF that works with an input queue. ... 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 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. ... It's because I'm doing a custom control that loads images in background when a path is specified. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Call Center application in Visual Basic
    ... Just to clear things out for me because I am new to the field of TAPI. ... Can any 3rd party model TSP for the specific PBX work with? ... > Please note that you need additional hardware (optiset E data or control ... >> of statistics on a queue, such the number of calls currently queued. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Controling Event Sequencing...
    ... event queue and have it execute AFTER the OnClick in completely done ... ... control exposes this event to the programmer to allow him / her to capture ... current system event has completed... ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Call Center application in Visual Basic
    ... I don't know of any other except its ancestor "Hicom CTI TAPI". ... Please note that you need additional hardware (optiset E data or control ... No it doesn't support lineGet/SetAgentXxx functions. ... > of statistics on a queue, such the number of calls currently queued. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Multithreading in .NET CF
    ... BackgroundWorker class for the .NET CF that works with an input queue. ... 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. ... SPECIFICATIONS: ... It's because I'm doing a custom control that loads images in background when a path is specified. ...
    (microsoft.public.dotnet.framework.compactframework)