Project

General

Profile

Actions

Bug #3732

closed

WPushButton + setMenu(WPopupMenu) + menu->addItem(tr("some-string"))

Added by Anonymous almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
01/17/2015
Due date:
% Done:

0%

Estimated time:

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!

Actions #1

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

Actions #2

Updated by Koen Deforche over 9 years ago

  • Status changed from Feedback to Closed

Updated by #3741

Actions

Also available in: Atom PDF