使用TweetSharp我正在计算关注者列表。我怎样才能收回到ListBox
?如何在列表框中取消ListFollower?
下面是代码:
var options = new ListFollowerIdsOfOptions() { ScreenName = "PutinRF" };
do
{
if (cursor != null)
options.Cursor = cursor;
var followersList = ts.ListFollowerIdsOf(options);
//listBox1.Items.AddRange(followersList.ToArray());
cursor = followersList.NextCursor;
} while (cursor != 0);
错误:System.OutOfMemoryException。 line:allIds.AddRange(followersIds); –
@ArtemOlegovich请参阅[本文](http://stackoverflow.com/questions/8563933/c-sharp-out-of-memory-exception)。你尝试调试它吗?列表中有多少项?例如: – Marusyk
:{ScreenName =“PutinRF”,Count = 20}。同样的错误=/ –