Sasikumar,
the informations I have don't allow me to guess where the error is;
try avoiding global variables and make the SAXParser a private
variable of the class (deleting it in the destructor).
Alberto
At 16.07 09/08/2007 +0530, [EMAIL PROTECTED] wrote:
Alberto,
I am struck with these core dumps. Any idea on these....
Thanks & Regards,
Sasikumar Kandhasamy
Project Engineer | Wipro Technologies | Madivala-4 | Bangalore.
Mobile:- +91 9986378586
"Dreams into Thoughts and Thoughts into Actions" -- Dr. A P J Abdul
Kalam
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, August 09, 2007 2:08 PM
To: [email protected]
Subject: RE: Getting core dump at xerces::SAXParser::parse function
[RefHash2KeysTableOf::removeAll]
Alberto,
It is single thread application. But We will not recreate the SAXParser
instance. Because we will check for NULL before creating the instance.
So first time it will be created and reuses the instance for the reset .
Sample code is,
XMResponseParser::XMResponseParser()
: response("")
{
try
{
if (handler == NULL) {
handler = ::new SAXPrintHandlers();
}
if (Parser == NULL) {
Parser = ::new SAXParser();
}
// set the SAX parser to validate
Parser->setValidationScheme(SAXParser::Val_Always);
Parser->setDoNamespaces(true);
Parser->setDoSchema(true);
Parser->setValidationSchemaFullChecking(true);
}
catch (const XMLException& toCatch)
{
....
}
}
Thanks & Regards,
Sasikumar Kandhasamy
Project Engineer | Wipro Technologies | Madivala-4 | Bangalore.
Mobile:- +91 9986378586
"Dreams into Thoughts and Thoughts into Actions" -- Dr. A P J Abdul
Kalam