You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Suzy Creamcheese <di...@yahoo.com> on 2008/01/17 03:23:36 UTC

Catch XMLErrs::Codes

I have a program that has been creating a log file for quite some time.
Recently, parsing the XML yields a XMLErrs::Codes exception that I cannot
catch it would seem, and causes the application to crash. Validation tools
on the internet find nothing wrong with the XML being parsed, and it is not
particularly large. I don't know what the problem is, but don't really care,
because I can not have this sort of thing crashing my application because it
should be fault tolerant.

Regards,
Colin Diesh
-- 
View this message in context: http://www.nabble.com/Catch-XMLErrs%3A%3ACodes-tp14905139p14905139.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.


Re: Catch XMLErrs::Codes

Posted by David Bertoni <db...@apache.org>.
Suzy Creamcheese wrote:
> I have a program that has been creating a log file for quite some time.
> Recently, parsing the XML yields a XMLErrs::Codes exception that I cannot
> catch it would seem, and causes the application to crash. Validation tools
> on the internet find nothing wrong with the XML being parsed, and it is not
> particularly large. I don't know what the problem is, but don't really care,
> because I can not have this sort of thing crashing my application because it
> should be fault tolerant.

Obviously you care, because you took the time to post to the mailing list, 
and you've stated you don't want your application to crash.  Perhaps I'm 
misinterpreting the tone of your post, but please remember this list 
consists of people volunteering their time, so asking nicely is much better 
than a flippant post that provides no useful information.

If you want help, you'll need to give us something to go on.  For example, 
a document instance that causes the crash, and a stack trace would help. 
Or better yet, post a standalone set of inputs, including source code, that 
someone can use to reproduce the problem.

Dave

Re: Catch XMLErrs::Codes

Posted by Justin Dearing <zi...@gmail.com>.
If you provided the logs and perhaps the code it might be possible for
someone to look into why it is crashing.

Also how large is not particularly large? OS? ram? cpu?

Can you catch any exceptions at all? are you compiling your code
right? Can you throw a new dummy XMLErrs::Codes exception in some
sample code and can you catch that?

On Jan 16, 2008 9:23 PM, Suzy Creamcheese <di...@yahoo.com> wrote:
>
> I have a program that has been creating a log file for quite some time.
> Recently, parsing the XML yields a XMLErrs::Codes exception that I cannot
> catch it would seem, and causes the application to crash. Validation tools
> on the internet find nothing wrong with the XML being parsed, and it is not
> particularly large. I don't know what the problem is, but don't really care,
> because I can not have this sort of thing crashing my application because it
> should be fault tolerant.
>
> Regards,
> Colin Diesh
> --
> View this message in context: http://www.nabble.com/Catch-XMLErrs%3A%3ACodes-tp14905139p14905139.html
> Sent from the Xerces - C - Users mailing list archive at Nabble.com.
>
>