[JW Lua] Finale crashes with finenv.UI():IsFontAvailable(...)

Charles O. Lawrence charlesolawrence at bellsouth.net
Thu Nov 26 16:43:18 CET 2015


I can confirm a crash on F2014.5 as well.

Charles

-----Original Message-----
From: JWLua [mailto:jwlua-bounces at jwmusic.nu] On Behalf Of Jan Angermüller
Sent: Thursday, November 26, 2015 10:37 AM
To: The JW Lua script plug-in. <jwlua at jwmusic.nu>
Subject: [JW Lua] Finale crashes with finenv.UI():IsFontAvailable(...)

Jari,

I noticed the a Finale crash on Finale 2014d/Windows 10 with the following
code:

local tempname=finale.FCString()
tempname.LuaString="Century Schoolbook L ItalicItalic"
print(finenv.UI():IsFontAvailable(tempname))

A font with this name is (of course) not available and the font name with
ItalicItalic at the end was only the result of a concatenation bug I had.
But the resulting crash was rather unexpected.
The script doesn't crash with any other silly font names. Probably you are
doing any Bold/Italic string processing internally which doesn't expect two
key words in a row.

Jan

_______________________________________________
JWLua mailing list
JWLua at jwmusic.nu
http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu





More information about the JWLua mailing list