J
JT
i have a text file that is used as a logfile for easier debugging. i am
using the OpenTextFile method to write to this file. this method exists
inside a logging function that can be called from anywhere in my ASP. this
works great for our development system b/c we have a limited number of
users.
however, we're unable to use this logging mechanism on live due to
concurrency issues. when two users attempt to open and write to the text
file at the same time, we have problems.
i thought the easiest way around this would be to first check if the text
file is already open - if it is, then send the user into a loop until the
file is available. however, i don't know of a method to check whether a
text file is in use. any suggestions? or any other ways i might get around
this concurrency issue?
thanks much
using the OpenTextFile method to write to this file. this method exists
inside a logging function that can be called from anywhere in my ASP. this
works great for our development system b/c we have a limited number of
users.
however, we're unable to use this logging mechanism on live due to
concurrency issues. when two users attempt to open and write to the text
file at the same time, we have problems.
i thought the easiest way around this would be to first check if the text
file is already open - if it is, then send the user into a loop until the
file is available. however, i don't know of a method to check whether a
text file is in use. any suggestions? or any other ways i might get around
this concurrency issue?
thanks much