Closed ANTS-ON closed 4 years ago
yup. if the file is not present, the reader_
object is deleted, and then referenced later. A fix is in the making.
Also see #7. Right now you are most likely not getting any helpful messages, although they are generated
For reference. This is how it should be done
PUBLISHLOG(stderr_log);
try
{
flux::xml::FluxMLDocument *fml = new flux::xml::FluxMLDocument("this_file_does_not_exists.fml");
}
catch (flux::xml::XMLException& e)
{
std::cout << "well this did not work" << std::endl;
}
When trying to instantiate the
FluxMLDocument
class likean seg fault accures. GDB says it happens in line 112 of
FluxMLDocument.cc
when you try to get the document from theDOMReader
.It also happens in your example program when you give it an invalid fluxml path.