[Tween-svn] [1099] 通常のタイムライン解析時にSecurityExceptionが発生するのを修正(したかも)

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 11月 24日 (水) 01:33:24 JST


Revision: 1099
          http://sourceforge.jp/projects/tween/svn/view?view=rev&revision=1099
Author:   syo68k
Date:     2010-11-24 01:33:24 +0900 (Wed, 24 Nov 2010)

Log Message:
-----------
通常のタイムライン解析時にSecurityExceptionが発生するのを修正(したかも)

Modified Paths:
--------------
    branches/UserStream/Tween/Twitter.vb


-------------- next part --------------
Modified: branches/UserStream/Tween/Twitter.vb
===================================================================
--- branches/UserStream/Tween/Twitter.vb	2010-11-23 12:15:50 UTC (rev 1098)
+++ branches/UserStream/Tween/Twitter.vb	2010-11-23 16:33:24 UTC (rev 1099)
@@ -1404,7 +1404,10 @@
     End Function
 
     Private Overloads Function CreatePostsFromJson(ByVal content As String, ByVal gType As WORKERTYPE, ByVal tab As TabClass, ByVal read As Boolean, ByVal count As Integer, ByRef minimumId As Long) As String
-        Using stream As New MemoryStream(Encoding.Unicode.GetBytes(content))
+        Using stream As New MemoryStream()
+            Dim buf As Byte() = Encoding.Unicode.GetBytes(content)
+            stream.Write(buf, 0, buf.Length)
+            stream.Seek(offset:=0, loc:=SeekOrigin.Begin)
             Return CreatePostsFromJson(stream, gType, tab, read, count, minimumId)
         End Using
     End Function



Tween-svn メーリングリストの案内
Back to archive index