使用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}。同樣的錯誤=/ –