From: Braden M. <br...@en...> - 2007-11-22 04:46:26
|
Jessica wrote: > Could you tell me please, how could I understand that the document is loaded and parsed correctly or an error has occured after browser object initialization and calling "load_uri"? > > vrmlBrowser browser(out, err); > > std::vector< std::string > uri(1, fileName); > std::vector< std::string > parameter; > browser.load_url(uri, parameter); > > //.... ??? > > // using browser Using browser:load_url, the only way to see if an error occurred would be to inspect the error stream. What you probably want to do is use browser::set_world instead. Unlike load_url, set_world blocks; and set_world throws an exception if it fails. > Is it possible to make parser to continue parsing ignoring occuring errors? It is not. -- Braden McDaniel e-mail: <br...@en...> <http://endoframe.com> Jabber: <br...@ja...> |