On 1/3/2007 12:32 PM, Chris Jett wrote:
> I have an application that has several threads that need to log what
> they've done to a log file.  Currently, I just have a method that takes
> care of logging.  However, as the the application gets busier, I am
> concerned that there may be a problem with the threads all trying to
> write to the log at the same time.  What would be the best way to handle
> this to prevent conflicts?

A critical section.  Note, however, that I had some trouble with
Critical Sections and logging a while back using 2006r2.  I posted about
it to the list, so you can find it in the archives.

-- 
Charles Calvert
Celtic Wolf, Inc.
(703) 580-0210
[EMAIL PROTECTED]
http://www.celticwolf.com/

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to