Le Dimanche 12 Juin 2005 23:51, Rupert Swarbrick a =E9crit=A0:
> If I use something like:
>
> xmlpp::NodeSet found;
> const xmlpp::TextNode* node_text;
> found =3D node->find( "./some/valid/path" );
> node_text =3D dynamic_cast<const xmlpp::TextNode*>(found[0]);
>
> Everything is fine.
>
> However, this:
>
> found =3D node->find( "./some/INVALID/path" );
>
> produces a segfault.
I can't reproduce such a behavior. Is the segfault on find itself ? Could y=
ou=20
post a sample code on which you have the problem ?
And about gdb, try to obtain the backtrace.
Regards,
Christophe
|