|
From: Alberto M. <ama...@da...> - 2006-12-29 14:08:30
|
Hi Thomas,
I think this is more an issue with the compiler; in some cases I have
seen reports of GCC not catching an exception even if the proper
catch(type&) has been used. One report blamed a GCC built without the
--enable-sjlj-exceptions switch, but I am not sure this is the real
problem. Can you try with a different version of the compiler (say, 3.4.x)?
Alberto
At 11.18 29/12/2006 -0200, Thomas Santana wrote:
>Should I move this to the Devel list? I still have the issue, and can't
>find where the error message comes from. I also wonder if moving to the
>Xerces DOM3 interface to XPATH would solve the problem.
>
>Thomas
>
>Thomas Santana (by way of Alberto Massari <ama...@da...>) wrote:
> > Alberto Massari wrote:
> >
> >> Hi Thomas,
> >> which platform/compiler are you using?
> >>
> > GCC 4.0.3 on Ubuntu 6.0.2
> > It compiles fine. I tried with a sample code and got the same problem.
> >
> > Thomas
> >
> >> Alberto
> >>
> >> At 18.11 16/12/2006 -0200, Thomas Santana wrote:
> >>
> >>> I ran into a small problem, and cant quite figure how to solve it.
> >>>
> >>> I'm my code I issue (in a try block):
> >>> xqillaImplementation=
> >>> DOMImplementationRegistry::getDOMImplementation(X("XPath2 3.0"));
> >>> xmlParser =
> >>>
> xqillaImplementation->createDOMBuilder(DOMImplementationLS::MODE_SYNCHRONOUS,
> >>>
> >>> 0);
> >>> document = xmlParser->parseURI(file);
> >>> const DOMXPathExpression* parsedExpression =
> >>> document->createExpression(X(xpath), resolver);
> >>>
> >>> I works fine with a valid XPATH expression, but if I give it something
> >>> wrong, say ("./") I get a:
> >>> terminate called after throwing an instance of 'XQException'
> >>> Aborted
> >>>
> >>>
> >>> Even though I have place a catch(XQException &e). What am I doing wrong,
> >>> what how do I capture this exception?
> >>>
>
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>opinions on IT & business topics through brief surveys - and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>XQilla-user mailing list
>XQi...@li...
>https://lists.sourceforge.net/lists/listinfo/xqilla-user
|