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

New Post: Auto rate limiting pausing

$
0
0
Hi,

The WeakDelegate allows to prevent memory leaks. If you find your WeakDelegate being null, please call a method instead of inline event.
The reason is that if your application registers an event on a static class, the object which registered the event will never be freed from the memory because it has a pointer to an object (static) that is never freed.
RateLimit.QueryAwaitingForRateLimit += QueryAwaitingForRateLimit;

privatevoid QueryAwaitingForRateLimit(object sender, QueryAwaitingEventArgs e)
{
    thrownew NotImplementedException();
}
Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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