Hi, like a few one start to know, I'm creating a plugin to read rss feeds (in visual basic.net).
In first versions, since the displaytoast function can be called only from the main thread, I was using a forced status change (and my displaytoast() call was in the onStatusChange function). After a few weeks, I noticed (and at least one user also did) that msn sometimes hanged after displaying the notification. Since I didn't see any error in my code, I though it was the quick status change which was making msn freeze.
But now I've completely rewritten this part, and I don't use the status change anymore (I instead use System.Windows.Forms.Form.Invoke function to make the main thread call the function I want). It worked well for a few day, but now I've again this damn freeze.
Since my code to display notification is really short, I'm really starting to think that the problem come from the DisplayToast() function.
code:
Public Function show_notification()
If (rssreminding = 1) Then
DisplayToast("Last News : " + remindrss, "RssPlug", remindurl, True)
rssreminding = 0
Else
DisplayToast("News : " + titlerss(index_to_show), "RssPlug", urlrss(index_to_show), True)
remindrss = titlerss(index_to_show)
remindurl = urlrss(index_to_show)
index_to_show = -1
End If
End Function
If I put a Msgbox before and after the displaytoast call, only the one before is displayed. I've checked the variables I used to call DisplayToast, but there is nothing special in it.
So, do anyone ever got the same problem ? Can a messenger plus developper tell me if that's really the DisplayToast function which is making my plugin freeze ? Since I don't have the function's source code, I can't do anything more than ask :/