G**T 发帖数: 388 | 1 I'm using a function to record all the exception in the program. However,
sometimes, it reports that: can not access the file (gstrErrorFileName), since
another process is using it. In my program, only the code below accesses that
file and I use synclock to lock it. Could it because windows OS is accessing
it? If yes, how can I prevent it so that it won't throw the exception?
thanks
visual basic code:
' write to the error log file
Dim oLockFile As New Object
SyncLock oLoc |
|