Ignore:
Timestamp:
Feb 28, 2008, 1:39:16 AM (16 years ago)
Author:
イグトランス (egtra)
Message:

Consoleをスレッド安全化(クリティカルセクション使用)。
Exception.HResultをPublicにした。
StringBuilder.Replaceが正しく機能しない問題を解消。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Include/Classes/System/IO/FileStream.ab

    r432 r435  
    3434    /* コンストラクタ.NETと同じように実装は難しい、一先ず動くものを実装したが変更が必要だと思う */
    3535    Sub FileStream(path As String, mode As FileMode, access As FileAccess, share As FileShare, options As FileOptions)
     36        If ActiveBasic.IsNothing(path) Then
     37            Throw New ArgumentNullException("path")
     38        ElseIf path.Length = 0 Then
     39            Throw New ArgumentException
     40        End If
     41
     42
    3643        Dim ac = access As DWord
    3744        Dim sh = share As DWord
     
    4956        'Throw System.IO.FileNotFoundException
    5057            This.handle=0
    51             Beep(220,500)
     58            Detail.ThrowWinLastErrorIOException("Failed to open/create file.")
    5259            Exit Sub
    5360        End If
Note: See TracChangeset for help on using the changeset viewer.