Changeset 411 for trunk/Include/system/exception.ab
- Timestamp:
- Feb 23, 2008, 5:37:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/system/exception.ab
r388 r411 28 28 29 29 Sub FinishFinally() 30 Imports System.Threading 30 31 If Thread.CurrentThread().__IsThrowing() Then 31 32 Throw Thread.CurrentThread().__GetThrowintParamObject() … … 34 35 35 36 Function ResolveCatchesOverload( ex As Object ) As LONG_PTR 37 OutputDebugString("ResolveCatchesOverload: ") 38 OutputDebugString(ToTCStr(ex.ToString)) 39 OutputDebugString(Ex"\r\n") 36 40 Dim defaultCatchCodePos = 0 As LONG_PTR 37 41 Dim pos = 0 As Long … … 66 70 Return defaultCatchCodePos 67 71 End Function 68 72 Private 69 73 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 /*/ 70 81 isCatchable = False 71 82 While Not ActiveBasic.IsNothing(catchType) … … 77 88 catchType = catchType.BaseType 78 89 Wend 90 '*/ 79 91 End Function 80 92 End Class … … 112 124 113 125 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 ) 115 127 End Function 116 128 … … 127 139 128 140 '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 ) 130 142 Debug 131 143 Return … … 133 145 134 146 ' スレッドへThrow処理を開始したことを通知 147 Imports System.Threading 135 148 Thread.CurrentThread().__Throw( ex ) 136 149
Note:
See TracChangeset
for help on using the changeset viewer.