Title: RE: Multithreading and using FileAppender
I am so stupid! I forgot to call t.Start(). Your suggestion to call t.Join() made that clear to me. It's working perfectly now.
I am so sorry for wasting your time like this.
Erik
-Original Message-
From: Nicko Cadell [m
er'
> Subject: RE: Multithreading and using FileAppender
>
> Nicko,
>
> I enabled internal debug, then ran the code twice. Once using
> a direct call to c.Loop() in my Main (so I simply replaced
> 'Thread t = new Thread( new ThreadStart( c.Loop ));' with
> 'c.Lo
Title: RE: Multithreading and using FileAppender
Nicko,
I enabled internal debug, then ran the code twice. Once using a direct call to c.Loop() in my Main (so I simply replaced 'Thread t = new Thread( new ThreadStart( c.Loop ));' with 'c.Loop()', then again using the
logging a message on application start, i.e. before you
create the thread.
Nicko
> -Original Message-
> From: Burger, Erik [mailto:[EMAIL PROTECTED]
> Sent: 06 January 2005 17:47
> To: '[email protected]'
> Subject: Multithreading and using FileAppen
Title: Multithreading and using FileAppender
I have a console application that calls a function within a class (provided in a separate dll) from within a thread as follows:
Class1 c = new Class1();
Thread t = new Thread( new ThreadStart( c.Loop ));
The Class1.Loop() function is defined as