|
|
On Sat, 7 May 2022, 05:55 supsm17 wrote:
Thanks a lot, I have a bit of an issue though...Here is my code (roughly, my memory isn't perfect):
Fl_Menu_Item menu_item[] = { {"name", 0, nullptr, int_ptr } }; // here int_ptr is a int* which exists for the entire duration of the program Fl_Menu_Button* o = new Fl_Menu_Button(400, 30, 40, 15); o->copy(menu_item); // < here, it crashes and complains about menu_item.size()
Do you know what this might be caused by, and how it could be fixed?
It doesn't look like you have terminated the menu item array properly, nor even populated it correctly.
Check the docs, and the menubar test example. -- Ian From my Fairphone FP3
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/CAGFM6dYvuqVJJ2ZLdQJHNbuB%2BCT_FncBf7Wz2PXcmqnr1B%2B9Rg%40mail.gmail.com.
[ Direct Link to Message ] | |
|
| |