Hi. I know how to write to a log file. I know how to clear a log file. The thing I do not know is how to determine when the log file is filled.
Usually when i write a log I would check for an exception and this will work e.g.
Code:try { MyLog.WriteEntry(logentry, logtype); // Write a log file. } catch(System.ComponentModel.Win32Exception) { // clear the log file MyLog.Clear(); }
However, apparently this is not working since I'm still getting a dialog box when the log file is filled on this machine. I do not want that dialog box, I want the log file to clear automatically. Anyone know a concrete way to find out if the log file is filled?
Jennifer




Reply With Quote