Changeset 411 for trunk/Include/system


Ignore:
Timestamp:
Feb 23, 2008, 5:37:00 PM (17 years ago)
Author:
イグトランス (egtra)
Message:

UTF8Encoding(仮)の追加

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Include/system/exception.ab

    r388 r411  
    2828
    2929    Sub FinishFinally()
     30        Imports System.Threading
    3031        If Thread.CurrentThread().__IsThrowing() Then
    3132            Throw Thread.CurrentThread().__GetThrowintParamObject()
     
    3435
    3536    Function ResolveCatchesOverload( ex As Object ) As LONG_PTR
     37        OutputDebugString("ResolveCatchesOverload: ")
     38        OutputDebugString(ToTCStr(ex.ToString))
     39        OutputDebugString(Ex"\r\n")
    3640        Dim defaultCatchCodePos = 0 As LONG_PTR
    3741        Dim pos = 0 As Long
     
    6670        Return defaultCatchCodePos
    6771    End Function
    68 
     72Private
    6973    Function isCatchable(paramName As String, catchType As System.TypeInfo) As Boolean
     74/*      If Not String.IsNullOrEmpty(paramName) Then
     75            Dim paramType = _System_TypeBase_Search(paramName)
     76            isCatchable = ActiveBasic.Detail.IsBaseOf(catchType, paramType)
     77        Else
     78            isCatchable = False
     79        End If
     80/*/
    7081        isCatchable = False
    7182        While Not ActiveBasic.IsNothing(catchType)
     
    7788            catchType = catchType.BaseType
    7889        Wend
     90'*/
    7991    End Function
    8092End Class
     
    112124
    113125    Static Function BeginTryScope( catchTable As *LONG_PTR, addressOfFinally As VoidPtr, basePtr As LONG_PTR, stackPtr As LONG_PTR ) As TryLayer
    114         Return _System_pobj_AllThreads->GetCurrentException()->_BeginTryScope( catchTable, addressOfFinally, basePtr, stackPtr )
     126        Return _System_pobj_AllThreads->GetCurrentException()._BeginTryScope( catchTable, addressOfFinally, basePtr, stackPtr )
    115127    End Function
    116128
     
    127139
    128140            'TODO: 適切なエラー処理
    129             MessageBox( NULL, "Catchされていない例外があります", NULL, MB_OK or MB_ICONEXCLAMATION )
     141            MessageBox( NULL, ToTCStr(Ex"Catchされていない例外があります\r\n" + ex.ToString), NULL, MB_OK or MB_ICONEXCLAMATION )
    130142            Debug
    131143            Return
     
    133145
    134146        ' スレッドへThrow処理を開始したことを通知
     147        Imports System.Threading
    135148        Thread.CurrentThread().__Throw( ex )
    136149
Note: See TracChangeset for help on using the changeset viewer.