Re: Re: Invalid TextBuffer iterator



Hello Tom.

I create project with Gtkmm + glade (Editor NetBeans).
I did not write you a complete code of the program, and wrote only the part that works with the buffer. If you want, I can make a good example, and send to you. I only work with Glade + Gtkmm 2.4 (no 3.0).

Best regards, Dmitry.


--- оригинальное сообщение ---
От: Tom <tfj gmx de>
Дата: 11.12.2012 06:22:07
Кому: gtkmm-list gnome org
Тема: Re: Invalid TextBuffer iterator

> On 10.12.2012 16:01, Dmitry Kruglov wrote
> > Gtk::TextView* p_text_edit = 0;
> > Glib::RefPtr<Gtk::TextBuffer> p_tb_result;
> >
> > p_tb_result = Gtk::TextBuffer::create();
> > p_tb_result->set_text("Hello ch01 cout gmail com");
> > p_text_edit->set_buffer(p_tb_result);
>
> Hi Dmitry,
>
> In the first line of the example above a pointer to Gtk::TextView is
> created and initialised with 0 (nullptr). There is not an object of
> Gtk::TextView. In the last line of the example a method of the not yet
> constructed object is called. Maybe this is the reason for the crashes
> of the programm?
>
> tom
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> https://mail.gnome.org/mailman/listinfo/gtkmm-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]