What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Bug Reports » [Bug? or not?] OnEvent_Contact*** called before OnEvent_SigninReady

[Bug? or not?] OnEvent_Contact*** called before OnEvent_SigninReady
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
O.P. [Bug? or not?] OnEvent_Contact*** called before OnEvent_SigninReady
in reference to http://shoutbox.menthix.net/showthread.php?tid=69...d=777535#pid777535
quote:
Originally posted by Patchou in January
quote:
Originally posted by CookieRevised
EDIT: although a new bug pops up now.... But this time, it is the fault of Messenger Plus! itself I believe. For some reason a OnEvent_ContactSignout was called _after_ the OnEvent_Signout:
quote:
Debug
Function called: OnEvent_Signout
Function called: OnEvent_ContactSignout

which resulted in making an "WLM - undefined" subdirectory since our own email wasn't defined anymore, obviously because we've signed out...

This can be worked around in the script, but in fact, this should have never happened in the first place. And this also might have big consequences for many other scripts...
Fixed for next version.

This still doesn't seem to be fixed completely...maybe....

With the SendTo script I very occassionally saw a fault popping up in the debug window (which otherwise didn't render any problems for the script itself because of the workaround/check I had in place since last time).

I wanted to know what the exact cause was, as I thought since this bug was fixed in Plus! it might be, for whatever reason, I got a contact event for a contact which isn't properly set in my contactlist (possible msn server bug?). After a very long time of monitoring suddenly the fault in the debugging window popped up again and I got these traces:


> Function called: "OnEvent_Initialize"
> Function called: "OnEvent_SigninReady"
> Function called: "OnEvent_Signout"
<= unfortunatly I dunno if "OnEvent_Signin" was called here as I don't have this in the script and forgot to add it to be monitored...
> Function called: "OnEvent_ContactStatusChange("*****@****.com", NLN)
<= error pops up here (because Messenger.MyContacts.GetContact(sEmail) = null);
> Function called: "OnEvent_ContactStatusChange("*****@****.com", BSY)
<= error pops up here (because Messenger.MyContacts.GetContact(sEmail) = null);
> Function called: "OnEvent_SigninReady"


Now, I dunno if this time it is really a bug or not (because I didn't monitor OnEvent_SignIn). But if it isn't it also implies that objects like Messenger.MyContacts are not to be taken for granted in contact events. It might well be possible that such objects aren't yet available at the time of the call. And this has on its turn big consequences for many scripts and should be taken in account by programmers.

Because OnEvent_SigninReady is in normal circumstances called fairly quickly after OnEvent_Signin, you will not notice or encounter all this pretty quickly, but it still can happen apparently...



PS: it would really really really be great (and helpful) if timestamps are added to the debugging log.
.-= A 'frrrrrrrituurrr' for Wacky =-.
05-18-2007 10:17 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Bug? or not?] OnEvent_Contact*** called before OnEvent_SigninReady - by CookieRevised on 05-18-2007 at 10:17 AM
RE: [Bug? or not?] OnEvent_Contact*** called before OnEvent_SigninReady - by Patchou on 05-19-2007 at 04:42 AM
RE: [Bug? or not?] OnEvent_Contact*** called before OnEvent_SigninReady - by CookieRevised on 05-23-2007 at 09:49 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On