You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the basic example as a baseline to make sure the error wasn't on my end, I tried to add a menu, changing the window type to HasMenubar and adding let menu = Menu::new(&ui, "Test Menu"); This complies without issues, but fails instantly at runtime. This happens whenever a new menu is defined.
let menu = Menu::new(&ui, "Test Menu");
let mut win = Window::new(&ui, "Test App", 200, 200, WindowType::HasMenubar);
This looks like the underlying issue is a Windows-specific problem. Linux also crashes the application, but it provides an error reason why:
** (iui-example:16391): CRITICAL **: 22:44:42.686: [libui] /...snip.../ui-sys-0.1.3/libui/unix/menu.c:233:uiNewMenu() You have a bug: You cannot create a new menu after menus have been finalized.
However, Windows doesn't share the helpful message:
error: process didn't exit successfully: target\debug\iui-example.exe (exit code: 2147483651)
OK, we can solve this with a different API design; I'll have the UI handle recall whether or not menus have been initialized, and if they have, prevent you from changing menus.
Using the basic example as a baseline to make sure the error wasn't on my end, I tried to add a menu, changing the window type to
HasMenubar
and addinglet menu = Menu::new(&ui, "Test Menu");
This complies without issues, but fails instantly at runtime. This happens whenever a new menu is defined.The text was updated successfully, but these errors were encountered: