Re: gtkentry->set_text("hello") segmentation fault signal 11



On Thu, 2009-05-21 at 12:08 -0500, Oscar Dávila wrote:
> This is how i have declared the entry
> 
> Gtk::Entry* entry_rapidrate;
> entry_rapidrate->set_text("hello");

Where is 'new Gtk::Entry'?

Gtk::Entry* entry_rapidrate = new Gtk::Entry;
entry_rapidrate->set_text("hello");

or

Gtk::Entry entry_rapidrate;
entry_rapidrate.set_text("Hello");

Krzesimir Nowak



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