What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [SOLVED] ChooseFontW causes Messenger crash after closing window

[SOLVED] ChooseFontW causes Messenger crash after closing window
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
O.P. [SOLVED] ChooseFontW causes Messenger crash after closing window
Hello again!

It seems like I've stumbled on some kind of scripting problem once again. This time, it's much more problematic than [?] Weirdness. Evolved. or [?] Trying to get into the advanced stuff...

Here's what's happening:
  1. The user opens the script's window.
  2. The user clicks a button.
  3. The script calls ChooseFontW to open a font dialog.
    • If the result of this call is zero (meaning that the user clicked Cancel in the dialog), the script stops here.
    • If the result of this call is nonzero (meaning that the user clicked OK), the script continues.
  4. The script reads the selected font name from the result structure and sets the button text to this name.
  5. The user closes the script window.
  6. Messenger crashes.
There really is nothing I can do to prevent this crash. The structures are cleared, nothing else is done, it doesn't crash when the user clicks Cancel or doesn't click the "Choose a font" button at all... and I have no clue why or how this is happening.

Attached is a sample script which proves this behavior. Feel free to mess around with it, do whatever you want to test this.

Please, help me if you can! :)

System information:
Windows Vista Ultimate x64 (6.0.6000)
Windows Live Messenger 8.5.1018
Messenger Plus! Live 4.50.0.317 (private BETA received from Patchou to test new scripting methods)

.plsc File Attachment: Choose Font Test.plsc (2.68 KB)
This file has been downloaded 179 time(s).

This post was edited on 03-09-2008 at 05:40 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
03-09-2008 12:03 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[SOLVED] ChooseFontW causes Messenger crash after closing window - by Matti on 03-09-2008 at 12:03 PM
RE: [?] ChooseFontW causes Messenger crash after closing window - by matty on 03-09-2008 at 02:11 PM
RE: [?] ChooseFontW causes Messenger crash after closing window - by CookieRevised on 03-09-2008 at 03:22 PM
RE: [?] ChooseFontW causes Messenger crash after closing window - by Matti on 03-09-2008 at 04:17 PM


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