Glib::ustring

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

 



OS : MSWinXP
gcc: 3.4.2
gtk:  gtkmm-win32-devel-2.10.8-1
problem:  Glib::ustring


Assignment methods in Glib::ustring are giving me serious problems. Simple 
statements as:

class MC{
   Glib::ustring* str;
public:
   void method();
};
MC::method(){
   str =  new Glib::ustring("Nada");
   this->str = ""; //segmentation error
}
Or if I use  this->str->assign("") create a segmentation error,
gdb reports the error as follows:
Program received a signal SIGSEGV, segmentation fault.
in std::string::assign(std::string const&)()

Why am I getting this error and how can I resolve it?

Thanks in Advance 


_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux