I have written this code Glib::ustring us = nullptr; Glib::ustring us1( nullptr ); And I am getting the same error. Reading the doc about this function Glib::ustring Gtk::ComboBoxText::get_active_text() const nullptr
if none is selected.
If combo_box contains an entry, this function will return its contents (which will not necessarily be an item from the list). But constructing a Glib::ustring from a nullptr produces the error, so it could be a bug in the function.
I suggest to wrap the call with a try-catch and if this works
fine, but I think it is a bug. I am compiling the version 3.18 of
gtkmm to dig a little bit more.
On 29/05/2019 10:21, Mohamed Khalil
BOUJDARIA wrote:
|