Bug #3732
closedWPushButton + setMenu(WPopupMenu) + menu->addItem(tr("some-string"))
0%
Description
Guys,
First of all, I really would like to thank you for Wt C framework! Loving it! Every bit of it! I really hope my project will pull through and you and I can even talk more and hopefully even do more business! Again - THANK YOU SO MUCH for such an amazing and unique platform/SDK!!!
I discovered a little bug, and already built a workaround it. I hope you can use my report to fix this issue in the next release (I am using Wt 3.3.3-2 on Fedora 20). In the meantime - feel free to share the workaround.
If I create a WPushButton, and associate a WPopupMenu in which I addItem and initilize the item's text with WString::tr(), upon exit (logout) I get the error:
Wt internal error: TypeError: a is null, code: undefined, description: undefined
or sometimes:
Wt internal error: TypeError: b is null, code: undefined, description: undefined
Please note, that you have to click on the WPushButton to get the WPopupMenu displayed, if you want to recreate the Wt internal error. Otherwise, it won't display this error.
Workaround ¶
If I intilialize the WPopupmenu item this was menu~~addItem(tr("some-string").toUTF8()) instead of menu~~>addItem(tr("some-string")) no error is displayed.
It possible that I have an issue/bug in my code, but I was able to replicate this error in another project.
Thank you!
Updated by Koen Deforche almost 10 years ago
- Status changed from New to Feedback
- Assignee set to Koen Deforche
Hey,
I wonder if this hasn't already been fixed since (in 3.3.3 or 3.3.4rc1). But in any case, I would happy to check this if you would have a small test case?
Koen
Updated by Koen Deforche almost 10 years ago
- Status changed from Feedback to Closed
Updated by #3741