[JW Lua] FCNoteEntry:CalcLargestNoteheadResize crashes

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Mon Jul 7 15:45:36 CEST 2014


Jan,

You're correct, that method doesn't work correctly with Lua (Lua doesn't 
have an integer type). I've logged this bug and will provide a working 
syntax for this method in the next update.

A statement like "local fontsize" would do nothing. The value of 
"fontsize" would still be nil.


Best regards,

Jari Williamsson


On 2014-07-07 15:28, Jan Angermüller wrote:
> Jari,
>
> Finale crashes every time I call FCNoteEntry:CalcLargestNoteheadResize
> with the following code snippet
>
> ...
> local fontsize
> local resize
> NoteEntry:CalcLargestNoteheadResize(fontsize,resize)    --NoteEntry is
> an FCNoteEntry element
> ...
>
> Is this the right way to call the function ?
> Probably not, as a "pointer to an integer" is required.
> But I didn't find that syntax in the Lua manual.
> I also tried it with tables, as they are pointers, but same crash:
>
> local fontsize={1}
> local resize={1}
> NoteEntry:CalcLargestNoteheadResize(fontsize,resize)
>
> Could you please give us an example of the correct function call ?
>
> Have a nice day,
> Jan
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
>






More information about the JWLua mailing list