Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Filtered Stream Hangs

$
0
0
Thank you thoze,
I had the same problem as WildAl but after using "StartStreamMatchingAllConditionAsync" function as you suggested, I am now able to get the tweets, however the application is freezing and I can't click on any other button such as "Stop Stream".

I tried to use "DoEvents" method but to no avail.
Also I coudn't use the keyword "await" since it is not available in Visual Studio 2010 which I have.

Any other suggestions?

By the way I use VB.net code:
    Sub Stream_FilteredStream()
        filteredStream = Stream.CreateFilteredStream()
        filteredStream.AddTrack("ladygaga")
        AddHandler filteredStream.MatchingTweetReceived, AddressOf MatchedTweetReceivedEvent
        filteredStream.StartStreamMatchingAllConditionsAsync()
    End Sub
    Sub MatchedTweetReceivedEvent(sender As Object, e As Tweetinvi.Core.Events.EventArguments.MatchedTweetReceivedEventArgs)
        lstTweets.Items.Add(e.Tweet.Text)
        Application.DoEvents()
    End Sub

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>