Changeset 29115
- Timestamp:
- 01/27/09 16:23:35 (4 years ago)
- Files:
-
- 1 modified
-
lang/vb2005/Tween/Tween/Twitter.vb (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/vb2005/Tween/Tween/Twitter.vb
r29094 r29115 1221 1221 Dim resMsg As String = "" 1222 1222 1223 resMsg = DirectCast(CreateSocket.GetWebResponse("https://" + _hubServer + _GetFollowers + _pageQry + Query.ToString, resStatus, MySocket.REQ_TYPE.ReqPOSTAPI), String)1224 If resStatus.StartsWith("OK") = False Then1225 IsThreadError = True1226 Return resStatus1227 End If1228 1229 1223 Try 1224 resMsg = DirectCast(CreateSocket.GetWebResponse("https://" + _hubServer + _GetFollowers + _pageQry + Query.ToString, resStatus, MySocket.REQ_TYPE.ReqPOSTAPI), String) 1225 If resStatus.StartsWith("OK") = False Then 1226 IsThreadError = True 1227 Return resStatus 1228 End If 1230 1229 Using rd As Xml.XmlTextReader = New Xml.XmlTextReader(New System.IO.StringReader(resMsg)) 1231 1230 Dim lc As Integer = 0 … … 1251 1250 Catch ex As Exception 1252 1251 IsThreadError = True 1253 TraceOut("NG OtherError:" + ex.Message)1252 ExceptionOut(ex) 1254 1253 Return "NG OtherError:" + ex.Message 1255 1254 End Try … … 1271 1270 Private Sub GetFollowersCallback(ByVal ar As IAsyncResult) 1272 1271 Dim dlgt As GetFollowersDelegate = DirectCast(ar.AsyncState, GetFollowersDelegate) 1273 semaphore.Release() ' セマフォから出る 1274 Interlocked.Decrement(threadNum) ' スレッド数カウンタを-1 1272 1275 1273 Try 1276 1274 Dim ret As String = dlgt.EndInvoke(ar) … … 1279 1277 IsThreadError = True 1280 1278 End If 1281 Catch ex As XmlException1282 IsThreadError = True1283 1279 Catch ex As Exception 1284 IsThreadError = True1285 'Dim _dlgt As rethrowExceptionDelegate = New rethrowExceptionDelegate(AddressOf rethrowException)1286 ' UIスレッドで例外を再スロー(うまく投げられない?)1287 '_dlgt.BeginInvoke(ex, Nothing, Nothing)1280 ExceptionOut(ex) 1281 Finally 1282 semaphore.Release() ' セマフォから出る 1283 Interlocked.Decrement(threadNum) ' スレッド数カウンタを-1 1288 1284 End Try 1289 1285 1290 End Sub1291 1292 Delegate Sub rethrowExceptionDelegate(ByVal ex As Exception)1293 1294 Private Sub rethrowException(ByVal ex As Exception)1295 Throw New ApplicationException("バックグラウンド操作で例外発生(GetFollowersDelegate)", ex)1296 1286 End Sub 1297 1287
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)