Click here to Skip to main content
15,918,808 members
Home / Discussions / C#
   

C#

 
GeneralRe: Vb to C# Pin
Guffa1-Feb-08 5:16
Guffa1-Feb-08 5:16 
Questionhow to call DLL function in generic method? Pin
vicky45731-Jan-08 9:32
vicky45731-Jan-08 9:32 
AnswerRe: how to call DLL function in generic method? Pin
S. Senthil Kumar1-Feb-08 6:02
S. Senthil Kumar1-Feb-08 6:02 
GeneralRe: how to call DLL function in generic method? Pin
vicky4571-Feb-08 6:58
vicky4571-Feb-08 6:58 
QuestionHow to assign DataView to Datatable Pin
ss.mmm31-Jan-08 9:27
ss.mmm31-Jan-08 9:27 
AnswerRe: How to assign DataView to Datatable Pin
J$31-Jan-08 9:38
J$31-Jan-08 9:38 
GeneralComboBox TextChanged Event firing unexpectedly [modified] Pin
DaveyM6931-Jan-08 8:29
professionalDaveyM6931-Jan-08 8:29 
GeneralThreading help Pin
daphne7531-Jan-08 8:21
daphne7531-Jan-08 8:21 
Here is my scenario,

Events are occuring as follows

.....START---info--info---info---END.....START---info--info---info---END.....START---info--info---info---END and so on

Files are written out based on, end event occurance or 10 mins time out which ever occurs first

i.e

information gathered from start till end must be written in one file

or

If 10 mins elasped and end event was not recieved then write what info we have gathered and again wiat for another 10 mins expecting an end event....say again our 10 mins elasped and nothing happened we write down wht we haev and wait again...say now we got an end event so in this case we will have 3 files.... as
File 1: START---info--info
File 2: info--info--info
File 3: info---END


What I have done is as soon as start event is received I start a thread which waits for 10 mins and writes out files. This is a continuous loop. The only way to come out of this loop is by interrupting the thread (this happens when we get an end event). When a thread is interrupted it will write what ever it has gathered and end.

Is this a right approach?

any other ideas to do it?

Thanks!
GeneralRe: Threading help Pin
Luc Pattyn31-Jan-08 11:03
sitebuilderLuc Pattyn31-Jan-08 11:03 
GeneralRe: Threading help Pin
daphne751-Feb-08 9:19
daphne751-Feb-08 9:19 
GeneralLogging Shutdown event in Windows Service Pin
abupsman31-Jan-08 7:46
abupsman31-Jan-08 7:46 
GeneralRe: Logging Shutdown event in Windows Service Pin
CKnig31-Jan-08 18:56
CKnig31-Jan-08 18:56 
QuestionHow to instantiate an object with a generic parameter? Pin
michal.kreslik31-Jan-08 7:31
michal.kreslik31-Jan-08 7:31 
AnswerRe: How to instantiate an object with a generic parameter? Pin
Giorgi Dalakishvili31-Jan-08 8:18
mentorGiorgi Dalakishvili31-Jan-08 8:18 
AnswerRe: How to instantiate an object with a generic parameter? Pin
Ennis Ray Lynch, Jr.31-Jan-08 9:00
Ennis Ray Lynch, Jr.31-Jan-08 9:00 
AnswerRe: How to instantiate an object with a generic parameter? Pin
Le centriste31-Jan-08 10:05
Le centriste31-Jan-08 10:05 
GeneralRe: How to instantiate an object with a generic parameter? Pin
michal.kreslik31-Jan-08 10:26
michal.kreslik31-Jan-08 10:26 
GeneralRe: How to instantiate an object with a generic parameter? Pin
Le centriste31-Jan-08 12:59
Le centriste31-Jan-08 12:59 
GeneralRe: How to instantiate an object with a generic parameter? Pin
michal.kreslik31-Jan-08 13:17
michal.kreslik31-Jan-08 13:17 
AnswerRe: How to instantiate an object with a generic parameter? Pin
darkelv31-Jan-08 14:18
darkelv31-Jan-08 14:18 
GeneralRe: How to instantiate an object with a generic parameter? Pin
michal.kreslik6-Feb-08 4:05
michal.kreslik6-Feb-08 4:05 
AnswerRe: How to instantiate an object with a generic parameter? Pin
Mark Churchill1-Feb-08 2:47
Mark Churchill1-Feb-08 2:47 
GeneralRe: How to instantiate an object with a generic parameter? Pin
michal.kreslik6-Feb-08 22:12
michal.kreslik6-Feb-08 22:12 
GeneralRe: How to instantiate an object with a generic parameter? [modified] Pin
Mark Churchill7-Feb-08 0:07
Mark Churchill7-Feb-08 0:07 
GeneralRefresh Pin
kibromg31-Jan-08 7:14
kibromg31-Jan-08 7:14 

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.