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.