View Issue Details

IDProjectCategoryView StatusLast Update
0004363MMW v4Framework: Scripts/Extensionspublic2008-02-04 14:11
Reporterpetr Assigned To 
PriorityimmediateSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Fixed in Version3.0 
Summary0004363: SDB.Tools.FileSystem.CreateTextFile does not work when the file doesn't already exist
DescriptionProgram errors using the following Sub. Works fine when file already exists.

Sub logme(msg)
  If DebugSt Then
    If IsEmpty(LogF) Then
      Set LogF = SDB.Tools.FileSystem.CreateTextFile(Script.ScriptPath&".log", False)
    LogF.WriteLine Now() & ":_" & msg
  End If
End Sub
TagsNo tags attached.
Fixed in build1135

Activities

petr

2008-02-04 14:11

developer   ~0013041

Fixed in 1135. That was because using Overwrite=False (second parameter). In this cases MM was tried to open non existing file with OpenWrite rights.