I'm also on a linux x86_64 and I can setup it without problem.
The stack trace is very strange:
- line 67 in toolbutton is a FillChar that shouldn't fail (it fills a stack allocated record):
FillChar({%H-}msg, SizeOf(msg), 0);
- line 106 does some set operations. I don't see how it leads to line 67 !!
(Style = tbsDropDown) and (tbfArrowPressed in NewFlags)) and
Are you sure that your install is clean ?
Serious? ({%H-}? You mean{$H-}That would be a mutilation of the shortstring and will cause that behavior.
The fiilchar should start from @s[1]^ in {$H-}, Or is this one of those silly IDE macro's?
Either way, if you mean a shortstring, you now know why it fails....
Anyway. That kind of code is really prehistoric. Write:
msg := Default(Shortstring);// will probably also fail in your case, but at least you have 255 bytes to play with
And sizeof(msg) is the pointer size. You probably mean Length(msg)....
Anyway, you need a Pchar, and a shortstring isn't going to help very much. Use a normal {$H+} string of sufficient length and cast it to PChar.