c++ - Program halt when constructing std::string -
in following code, when constructing string url
, execution halts. no error, execution doesn't stop, hangs there, , can't press step over. seems fine in debugger, no nullpointers, baseurl set properly. rapidxml's value()
function returns char*
.
am missing something?
with eclipse indigo on ubuntu 12.04
rapidxml::xml_node<> *gallerynode = mynode->first_node("gallery"); std::string baseurl = gallerynode->first_attribute("url")->value(); gallerynode = gallerynode->first_node("filename"); while ( gallerynode != null ) { std::string url(baseurl); url.append(gallerynode->value()); gallery.addimageurl(url); gallerynode = gallerynode->next_sibling(); }
the cause python enabled gdb in eclipse. downloaded svn, altered gdbinit
file. viewing variables easier while debugging, apparently has quite annoying side effects.
Comments
Post a Comment