Changeset 295 for Common/UDebugLog.pas


Ignore:
Timestamp:
Nov 15, 2011, 8:46:43 AM (13 years ago)
Author:
george
Message:
  • Moved: Units UPool and UResetableThread moved from CoolWeb to Common. Both units redone to more abstract reprezentation.
  • Added: New Port property in class TSqlDatabase.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/UDebugLog.pas

    r290 r295  
    101101begin
    102102  try
    103     ForceDirectoriesUTF8(ExtractFileDir(FileName));
     103    if ExtractFileDir(FileName) <> '' then
     104      ForceDirectoriesUTF8(ExtractFileDir(FileName));
    104105    if FileExistsUTF8(FileName) then LogFile := TFileStream.Create(UTF8Decode(FileName), fmOpenWrite)
    105106      else LogFile := TFileStream.Create(UTF8Decode(FileName), fmCreate);
Note: See TracChangeset for help on using the changeset viewer.