Re: [Dev-C++] Glib::ustring::assign(...)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Adam J. <aj...@i-...> - 2007-08-17 18:13:15
|
If you are getting a Segmentation fault on this->ustr->assign(title);
My guess would be that this-> or ustr-> pointer is not defined. Usually
segmentation faults points to pointer allocation problems. I would check
these pointers to make sure they are defined, by the time you try to use
them.
-Adam Jones
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Jamiil
Abduqadir
Sent: Friday, August 17, 2007 1:40 AM
To: Dev Cpp MailingLinst; gtk...@gn...
Subject: [Dev-C++] Glib::ustring::assign(...)
WinXP GNU 3.4.2
I have this statement in
if(!title.empty())
{
this->ustr->assign(title); // Segmentation Fault
}
Now, dbg reports that:
#0 0x6650d384 std::string::assign(std::string const&) (??:??)
#1 0x664d9c69 Glib::ustring::assign(Glib::ustring const&)
(/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/basic_string.h:427)
#2 0x00401e83 jme::Combo::Combo(Glib::ustring const&) (??:??)
#3 0x004027ea jme::NameFrame::Init() (??:??)
#4 0x00402c54 jme::NameFrame::NameFrame() (??:??)
#5 0x0040649c jme::Contacts::Contacts() (??:??)
#6 0x00409f1d jme::Jaime::Init() (??:??)
#7 0x004097e0 jme::Jaime::Jaime() (??:??)
#8 0x0042068e main (??:??)
Does anyone know what this error mean and/or what I can do to get rid of the
error?
T.I.A.
|