On 02.07.2011, at 20:07, GM wrote: > wi_cli->add(value.c_str());
c_str() returns a temporary variable. Fl_Widget however needs a pointer to a variable that is allocated as long as the browser is around. This would work: > > wi_cli->add(strdup(value.c_str())); but you need to make sure to deallocate the strings when you change entries or delete the browser. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

