[xsd-users] terminate called after throwing an instance of 'xsd::cxx::xml::invalid_utf8_string'

Alberto Colombo a.colombo at kingston.ac.uk
Fri Jan 25 09:25:28 EST 2008


Hello Boris,

> > KanannotateHelper::KanannotateHelper (string _layout_filename) throw
> > (xml_schema::exception) : layout_filename( _layout_filename ),
> > topology( ka::topology( layout_filename ) )
> > {}
> >
> > I get the exception thrown.

> In your case what immediately comes to mind is the possibility that
> the layout_filename and topology member variables are initialized
> in the wrong order. In this case you would be using layout_filename
> which hasn't been constructed yet and would therefore contain
> garbage which, in turn, would most likely trigger the exception.
> Can you confirm that layout_filename is declared before topology
> in KanannotateHelper class?

layout_filename is declared *after* topology, your guess was correct... 

Thanks a lot for your help!
Regards
Alberto
> 
> 
> Boris
> 
> This email has been scanned for all viruses by the MessageLabs Email
> Security System.
-- 
Alberto Colombo, MSc

PhD student at Digital Imaging Research Centre
Kingston University, London

e-mail: a.colombo at kingston.ac.uk
  cell: +44 77267 11980
  http://dircweb.king.ac.uk/Ris/queries/pages/home_page.asp?AuthorID=925

This email has been scanned for all viruses by the MessageLabs Email
Security System.




More information about the xsd-users mailing list