You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2003/11/21 12:16:23 UTC
DO NOT REPLY [Bug 24881] -
grammar load crash
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24881>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24881
grammar load crash
alby@exceloncorp.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From alby@exceloncorp.com 2003-11-21 11:16 -------
The test program is not valid; you shouldn't call Terminate while you still
have any Xerces object live in the stack. If you do, and the destructors of
those objects try to access some global variables that Terminate released, a
crash will happen.
The correct program is:
XMLPlatformUtils::Initialize();
{
XercesDOMParser parser;
parser.setDoSchema(true);
parser.setDoNamespaces(true);
parser.setValidationScheme(XercesDOMParser::Val_Always);
parser.loadGrammar("test.xsd", Grammar::SchemaGrammarType);
}
XMLPlatformUtils::Terminate();
This code works with VS.NET 2003 and the snapshot 20031120171656.
Alberto
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org