Click here to Skip to main content
15,905,912 members
Home / Discussions / C#
   

C#

 
GeneralRe: Connecting to RFID Reader Pin
Member 407767223-Apr-10 4:34
Member 407767223-Apr-10 4:34 
GeneralRe: Connecting to RFID Reader Pin
Migounette23-Apr-10 6:49
Migounette23-Apr-10 6:49 
QuestionDataList doesn't go into Edit mode correctly Pin
MWRivera22-Apr-10 8:54
MWRivera22-Apr-10 8:54 
QuestionDataGridView-Database in csharp smart device Pin
Tunisien8622-Apr-10 6:14
Tunisien8622-Apr-10 6:14 
AnswerRe: DataGridView-Database in csharp smart device Pin
Dan Mos22-Apr-10 7:55
Dan Mos22-Apr-10 7:55 
GeneralRe: DataGridView-Database in csharp smart device Pin
Tunisien8623-Apr-10 10:00
Tunisien8623-Apr-10 10:00 
QuestionThread Sync Query Pin
AmitDey22-Apr-10 5:09
AmitDey22-Apr-10 5:09 
AnswerRe: Thread Sync Query Pin
Luc Pattyn22-Apr-10 5:18
sitebuilderLuc Pattyn22-Apr-10 5:18 
Hi,

you could create two threads, one looping the reads, the other the writes; then the arrays need to be handed over from one thread to the other, an easy way to do so is with a Queue. If you need lots of arrays and they all are same size, same type, you could skip creating and garbage collecting them by creating a pool of arrays, holding them in an "empty queue", so the reader would get one from there, fill it, pass it thru the other queue; and the writer would get a filled array, write it out, and stuff the array in the "empty queue" again.

[ADDED]
Forgot to mention the obvious: you need some synchronization mechanism for this to work properly; have a look at the lock statement.
[/ADDED]

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

Prolific encyclopedia fixture proof-reader browser patron addict?
We all depend on the beast below.


QuestionListviewItems arrangement with csharp smart device [modified] Pin
Tunisien8622-Apr-10 3:55
Tunisien8622-Apr-10 3:55 
AnswerRe: ListviewItems arrangement with csharp smart device Pin
Tunisien8622-Apr-10 5:30
Tunisien8622-Apr-10 5:30 
QuestionSave multipaged Tiff image to file, looses the pages ??? Pin
Paw Jershauge22-Apr-10 3:47
Paw Jershauge22-Apr-10 3:47 
AnswerRe: Save multipaged Tiff image to file, looses the pages ??? Pin
Henry Minute22-Apr-10 5:18
Henry Minute22-Apr-10 5:18 
GeneralRe: Save multipaged Tiff image to file, looses the pages ??? Pin
Paw Jershauge22-Apr-10 20:22
Paw Jershauge22-Apr-10 20:22 
Questionc# and sql windows 7 problem Pin
michaelgr122-Apr-10 3:22
michaelgr122-Apr-10 3:22 
AnswerRe: c# and sql windows 7 problem Pin
dan!sh 22-Apr-10 4:42
professional dan!sh 22-Apr-10 4:42 
AnswerRe: c# and sql windows 7 problem Pin
Not Active22-Apr-10 4:47
mentorNot Active22-Apr-10 4:47 
GeneralRe: c# and sql windows 7 problem Pin
Swiftain22-Apr-10 4:50
Swiftain22-Apr-10 4:50 
GeneralRe: c# and sql windows 7 problem Pin
michaelgr122-Apr-10 5:52
michaelgr122-Apr-10 5:52 
GeneralRe: c# and sql windows 7 problem Pin
Not Active22-Apr-10 6:14
mentorNot Active22-Apr-10 6:14 
GeneralRe: c# and sql windows 7 problem Pin
Not Active22-Apr-10 6:13
mentorNot Active22-Apr-10 6:13 
QuestionImported DLL problem Pin
TimSWatson22-Apr-10 3:00
TimSWatson22-Apr-10 3:00 
AnswerRe: Imported DLL problem Pin
Luc Pattyn22-Apr-10 3:38
sitebuilderLuc Pattyn22-Apr-10 3:38 
AnswerRe: Imported DLL problem Pin
David Knechtges22-Apr-10 3:44
David Knechtges22-Apr-10 3:44 
QuestionThumbnail control for sorting images by drag & drop Pin
ab-tools22-Apr-10 2:32
ab-tools22-Apr-10 2:32 
AnswerRe: Thumbnail control for sorting images by drag & drop Pin
Eddy Vluggen22-Apr-10 5:36
professionalEddy Vluggen22-Apr-10 5:36 

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.