Given that 99.9999% of the code that runs in your program is inside the
parse() method, that still leaves a lot of territory to cover. If its your
own build, I'd suggest that you work the problem with the debugger and see
what you can figure out.

--------------------------
Dean Roddey
The CIDLib C++ Frameworks
Charmed Quark Software
[EMAIL PROTECTED]
http://www.charmedquark.com

"Why put off until tomorrow what you can
put off until the day after tomorrow?"

----- Original Message -----
From: "Xiaobing Wu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 16, 2001 4:54 PM
Subject: seg fault with DOMParser::parse


> I run a simple experimental DOM parser program under
> linux with xerces-c1_4. There's no problem with
> compiling, but when I run the program, it finishes up
> with seg fault and no other error information. I used
> GDB to debug the program, and found the bug lies in
> the parse function.
>
> The code of the parse function is:
>
> char* xmlFile;
>
>   xmlFile = "../xmlfiles/3045.xml";
>
>   file://initialize the DOM parser
>   DOMParser *parser = new DOMParser();
>   DOMTreeErrorReporter* errReporter;
>   parser->setErrorHandler(errReporter);
>
>   bool errorsOccured = false;
>   try {
>     parser->parse(xmlFile);
>   }
>
> Any idea about that? Thanks.
>
> Jemma
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to