Hi All,
I'm accessing a scanner programatically (using WIA automation) and I
want to make the application multithreaded to allow the foreground UI
to be accessible while calls to the scanner occur in the background. Of
course, when I suggest multi-threaded, I really only want the main
thread to control the UI while a second thread controls the scanner. I
don't want multiple threads accessing the scanner - just a single
thread that I can query if it is busy or free.
Is there a design pattern I should consider?
Thanks,
Rein
Jeff - 05 Jan 2006 20:36 GMT
If the thread doing the scanning is purely a background thread (i.e. you
don't need to interrupt it, or necessarily know when it's done), then I
suggest looking at the ThreadPool.QueueUserWorkItem method.
> Hi All,
>
[quoted text clipped - 11 lines]
>
> Rein