Click here to Skip to main content
15,908,274 members
Home / Discussions / C#
   

C#

 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Heath Stewart21-May-04 4:23
protectorHeath Stewart21-May-04 4:23 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Grimolfr21-May-04 3:57
Grimolfr21-May-04 3:57 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Heath Stewart21-May-04 4:24
protectorHeath Stewart21-May-04 4:24 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Dave Kreskowiak21-May-04 4:36
mveDave Kreskowiak21-May-04 4:36 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Heath Stewart21-May-04 4:42
protectorHeath Stewart21-May-04 4:42 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Dave Kreskowiak21-May-04 4:44
mveDave Kreskowiak21-May-04 4:44 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Dave Kreskowiak21-May-04 4:43
mveDave Kreskowiak21-May-04 4:43 
Generalbest pratice Pin
the last free name21-May-04 1:25
the last free name21-May-04 1:25 
Hi all,
I need some advice on the best method to impelemt some functionality.

I have a reader obj that reads all the files in a folder, running in a thread. After each file has been read I call a processor obj to manipulte the data and fill a database. I'd like to process one file while reading the next, but limit the processor to only one instance (to prevent duplication of data in the DB). If the reader finishes reading before the processor it should wait until the processor is done its current data load, but if the porcessor has finished then the reader should make a new processor and then continue to read the next file.
So whats the best method of controling the reader depending on the state of the processor?

I should point out that I'm fairly new to C# (six months)

Thanks
GeneralRe: best pratice Pin
Dave Kreskowiak21-May-04 3:18
mveDave Kreskowiak21-May-04 3:18 
GeneralRe: best pratice Pin
the last free name21-May-04 4:34
the last free name21-May-04 4:34 
GeneralMSDN Pin
sreejith ss nair21-May-04 1:22
sreejith ss nair21-May-04 1:22 
GeneralRe: MSDN Pin
CWIZO21-May-04 2:10
CWIZO21-May-04 2:10 
GeneralRe: MSDN Pin
sreejith ss nair21-May-04 2:28
sreejith ss nair21-May-04 2:28 
GeneralRe: MSDN Pin
Aryadip21-May-04 2:42
Aryadip21-May-04 2:42 
GeneralRe: MSDN Pin
sreejith ss nair21-May-04 2:54
sreejith ss nair21-May-04 2:54 
GeneralRe: MSDN Pin
Dave Kreskowiak21-May-04 3:01
mveDave Kreskowiak21-May-04 3:01 
GeneralRe: MSDN Pin
Grimolfr21-May-04 4:05
Grimolfr21-May-04 4:05 
GeneralRe: MSDN Pin
Heath Stewart21-May-04 4:18
protectorHeath Stewart21-May-04 4:18 
GeneralOdd threads Pin
Christer Claesson21-May-04 1:20
Christer Claesson21-May-04 1:20 
GeneralRe: Odd threads Pin
Dave Kreskowiak21-May-04 2:59
mveDave Kreskowiak21-May-04 2:59 
GeneralYeah Pin
Christer Claesson21-May-04 3:05
Christer Claesson21-May-04 3:05 
GeneralExtremely odd freak incident. Pin
Christer Claesson21-May-04 3:02
Christer Claesson21-May-04 3:02 
GeneralRe: Extremely odd freak incident. Pin
Dave Kreskowiak21-May-04 3:04
mveDave Kreskowiak21-May-04 3:04 
GeneralRe: Extremely odd freak incident. Pin
Christer Claesson21-May-04 3:09
Christer Claesson21-May-04 3:09 
GeneralRe: Extremely odd freak incident. Pin
Dave Kreskowiak21-May-04 3:55
mveDave Kreskowiak21-May-04 3:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.